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

[Solved] Hierarchical Grid - Refresh Parent after Insert

1 Answer 173 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 15 Jun 2009, 05:11 PM
Hello,

I have a hierarchical grid that is configured to insert items in the second tier.
The parent grid (upper most tier) identifies the count of items in the second tier (as a grid cell).
How do I update the count in the parent grid after inserting an item in the child grid?
The child grid rebinds after the insert, but not the parent.
Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 17 Jun 2009, 12:07 PM
Hi Jon,

The easiest way to achieve this scenario is in the ItemInsertedEvent to get a reference to the corresponding table cell in the parent row and update the text or the control in it that contains the count value, e.g.: e.Item.OwnerTableView.ParentItem["ColumnName"].Text = rowCount.ToString();

I hope this information helps.

Best Regards,
Tsvetoslav
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
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or