My Design page
Hi Shinu, Thanks for the reply. I was able to get the Reference of the grid when i change the template i was able to get the reference of the grid. But the output is not what i wanted.
I wanted to show a grid in the child node.
I am able to see the child node in the grid when i use bind the grid using DataSource controls, but i dont get the reference of the grid when i change the template to show grid as a child node.
answered on 02 Nov 2010, 02:26 PM
Well you can do the following:
1. Create the template with RadGrid in the code-behind as a class implementing the ITemplate interface (here is an article on this topic: http://www.telerik.com/help/aspnet-ajax/tree_templatesruntime.html);
2. Handle the event TemplateNeeded (thrown for every node during binding);
3. in the handler of TemplateNeeded check if the node should be templated with grid or not and if yes, then instantiate the template and add it to the NodeTemplate property of the node.
This should do it!
Hope this is helpful for you!
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items