I need to to a Rebind() when the Page is refreshed, but not when a new record is first inserted (I lose all of the "new" values if I do). What can I check on in order to perform the Rebind?
Particularly when the user clicks the "Refesh" button on the Grid.
You can check for the CommandName of the Refresh button in the ItemCommand event of the grid. The example below should help restore the inserted values when Refresh button is clicked.
c#:
The e.CommandName is "Rebind" the RadGrid.RebindGridCommandName is "RebindGrid" and the code does not going into the if() block. Did a hard comparison against "Rebind" and it works.
I ended up with this:
if (e.CommandName == "Rebind")
{
this.radGrid.Rebind();
}