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

Updating the parent grid data based on a change in the template

2 Answers 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Erion
Top achievements
Rank 1
Erion asked on 08 Sep 2011, 03:59 PM
Hi, 

I am scratching my head around this problem. I have a child template that contains some data. I have the master template which also contains data. The objects of the parent template are a container of the objects in the child template. 

When I edit the values of the child template.I can't get the parent template to refresh. Is there a way to do this ? 

thanks 

2 Answers, 1 is accepted

Sort by
0
Erion
Top achievements
Rank 1
answered on 08 Sep 2011, 04:18 PM
Hi, 

so I figure out how do do this. I needed to call refresh on the master template.  As a personal note, i would think that calling refresh on the grid, would automatically call refresh on the templates also, but maybe I misunderstand the grid API. 
0
Stefan
Telerik team
answered on 13 Sep 2011, 12:10 PM
Hi Erion,

Thank you for writing.

This is one way to update the data. The other way is to implement the INotifyPropertyChanged interface in your objects and to bind to a collection that implements IBindingList. Of course, if your are binding to a collection of custom objects. 

If you are willing to provide me with your project, I would be happy to take a look at it and provide you with more information. Since forum threads does not allow attachments, feel free to open a support ticket with the attached project and reference to this forum thread.
 
Regards,
Stefan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Erion
Top achievements
Rank 1
Answers by
Erion
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or