Snake3ite
Snake3ite

Reputation: 43

Telerik RadGrid GridTemplateColumns programmatically

I need to make multiple RadGrids with editable columns throughout them. I understand how to make bound columns and make template columns but i do not know how to place Textbox's and Dropdownlists inside of those template columns.

string templateColumnName = "ContactName";
GridTemplateColumn templateColumn = new GridTemplateColumn();
templateColumn.ItemTemplate = new MyTemplate(templateColumnName);
templateColumn.HeaderText = templateColumnName;

what do I do after this.

Upvotes: 1

Views: 3810

Answers (1)

Daniel Benitez
Daniel Benitez

Reputation: 11

You should instantiate the desired webcontrol within the container. This happens in the InstantiateIn method. I'd recommend that you examine this link: Programmatic creation

If you need more info, you can also examine this one: Creating Web Server Control Templates Programmatically

Let us know if you have any specific question about that.

Upvotes: 1

Related Questions