Is there any way to delete a record server side from a control outside of the RadGrid and have the grid update when the postback returns?
I have a LinkButton that handles deleting a record from the datasource and then calls the RadGrid Rebind method.
This triggers the NeedDataSource() method to fire and subsequently the RadGrid PreRender. The problem is that when the page finishes the postback, the deleted row is still visible in the grid. Any other interaction with the grid such as selecting a row or sorting, calls NeedDataSource again and the deleted row is gone.
I've verified that the data that comes back to NeedDataSource right after delete does not contain the row that was deleted.
There is a similar "Add" functionality that works fine. Meaning the row is added, data updated and Rebind called and grid shows the new row. I presume this is because the add calls a RadWindow that is still within the RadPanel that contains the RadGrid whereas the Delete button is outside of the Panel.
Here is the psuedo code of what I'm doing.
Here is a mockup of the aspx side.
I have also tried adding ibtnDelete to the RadAjaxManager with the RadGrid, but that did not resolve anything.