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

[Solved] Refresh HierarchyChildTemplate

1 Answer 135 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Simone Reeve
Top achievements
Rank 1
Simone Reeve asked on 16 Jun 2009, 06:29 AM
Hi,
Are there any way to rebind HierarchyChildTemplate ? I have been successfully rebind Master Grid but could not rebind hierarchy child.
Please also post a example.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 17 Jun 2009, 08:47 AM
Hi Simone Reeve,

Could you provide more information about your scenario like what type of chierarchy are you using? Are you trying to provide a new HierarchyChildTemplate runtime, or just trying to refresh the data in the child grids?

You could try this:

var source = this.radGridView.ItemsSource;  
this.radGridView.ItemsSource = null;  
this.radGridView.ItemsSource = source; 

That should rebind both the master grid and all of its children.

Sincerely yours,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Simone Reeve
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or