Hi Emmanuel,
Sorry for the delayed response.
Please refer the below code snippet which illustrates you to create EditItemTemplate which is inherited from ITemplate.
if (e.TableCellIdentity.Column.Name == "Column2")
{
Syncfusion.Web.UI.WebControls.Shared.DropDownCalendarControl dropdown = new DropDownCalendarControl();
dropdown.ClientObjectId = "ddcal";
dropdown.CustomFormat="MM/dd/yy";
dropdown.Format = DateTimeFormatType.CustomString;
//Here we adding the DropDownListBox programmatically
using ITemplate Interface
TemplateClass mytemp = new TemplateClass(dropdown);
e.TableCellIdentity.Column.EditItemTemplate = mytemp;
}
public class TemplateClass : ITemplate
{
private Control m_ctrlChildControl = null;
public TemplateClass(Control ctrlChildControl)
{
m_ctrlChildControl = ctrlChildControl;
}
public void InstantiateIn(Control container)
{
container.Controls.Add(m_ctrlChildControl);
}
}
Please refer the below KB link to get more detail on this and a sample which illustrates the above:
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=373Please refer the below KB link to get more details on creating Template columns in Design time:
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=192Please let me know if this helps you out.
Regards,
Raji