Hello,
I have two radgrids in the same page, both have used inline edit mode.
I've set some row in the grid1 to edit mode. Next step is to set another row in the grid2 to edit mode and simultaneously close edited row in grid1. The problem is, that sometimes it doesn't work. The row in grid1 is still in edit mode, even I used standard commands to close it:
RadGrid1.MasterTableView.IsItemInserted = false;
RadGrid1.MasterTableView.ClearEditItems();
RadGrid1.Rebind();
Today I've found another command which when I apply it closes edited row as I needed :)
This is the code line which did the job for me:
RadGrid1.EditIndexes.Clear();
Could somebody explain to me the difference between above mentioned commands. When to use which one ?
Thanks
Vasssek
I have two radgrids in the same page, both have used inline edit mode.
I've set some row in the grid1 to edit mode. Next step is to set another row in the grid2 to edit mode and simultaneously close edited row in grid1. The problem is, that sometimes it doesn't work. The row in grid1 is still in edit mode, even I used standard commands to close it:
RadGrid1.MasterTableView.IsItemInserted = false;
RadGrid1.MasterTableView.ClearEditItems();
RadGrid1.Rebind();
Today I've found another command which when I apply it closes edited row as I needed :)
This is the code line which did the job for me:
RadGrid1.EditIndexes.Clear();
Could somebody explain to me the difference between above mentioned commands. When to use which one ?
Thanks
Vasssek