I have a RadGrid whose MasterTable is being filled through the NeedDataSource() method of the grid. I have one child table, that is filled in the DetailTableDataBind() method.
I capture the ItemCommand event for the grid, check whether it is Delete, and then determine the OwnerTableView to check if I should delete from the MasterTable's DataSource or the ChildTable's DataSource.
When I delete a MasterTable row, it works fine.
When I delete a ChildTable row, the data store is updated, but after running NeedDataSource() (I call RadGrid1.MasterTableView.ReBind() from the ItemCommand event handler), only the ChildTable is updated. My MasterTable contains a total of a column in the ChildTable, and the change to the data store is not reflected on the grid.
The RadGrid is currently set up as an UpdatedControl when itself changes, e.g.
Is there a way to "reset" the RadGrid, and refill it with data? Or is that what NeedDataSource() does? Anything that I can try that might remedy this situation?
I capture the ItemCommand event for the grid, check whether it is Delete, and then determine the OwnerTableView to check if I should delete from the MasterTable's DataSource or the ChildTable's DataSource.
When I delete a MasterTable row, it works fine.
When I delete a ChildTable row, the data store is updated, but after running NeedDataSource() (I call RadGrid1.MasterTableView.ReBind() from the ItemCommand event handler), only the ChildTable is updated. My MasterTable contains a total of a column in the ChildTable, and the change to the data store is not reflected on the grid.
The RadGrid is currently set up as an UpdatedControl when itself changes, e.g.
<telerik:AjaxSetting AjaxControlID="RadGrid1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadGrid1" |
LoadingPanelID="RadAjaxLoadingPanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
Is there a way to "reset" the RadGrid, and refill it with data? Or is that what NeedDataSource() does? Anything that I can try that might remedy this situation?