This is a migrated thread and some comments may be shown as answers.

set mastertableview itemtemplate programmatically

2 Answers 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nour
Top achievements
Rank 1
Nour asked on 31 Jul 2011, 11:04 AM
hi i want to set mastertableview itemtemplate from code behind
like this example :
http://www.telerik.com/help/aspnet/grid/grdprogrammaticcreation.html
but for the mastertableview itemtemplate not the column itemtemplate 

2 Answers, 1 is accepted

Sort by
0
Nour
Top achievements
Rank 1
answered on 01 Aug 2011, 11:34 AM
Any help please
0
Tsvetina
Telerik team
answered on 04 Aug 2011, 12:24 PM
Hi Nour,

There is no difference in the way you define the template. It must implement the ITemplate interface, same as with the template column and should be assigned to the MasterTableView on Page_Init. You could see that you can even assign the template from the help article to the ItemTemplate property of the MasterTableView and it will work.
Where exactly do you encounter difficulties with your implementation?

Regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Nour
Top achievements
Rank 1
Answers by
Nour
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or