I have 3 rows in a grid and I delete the middle one using clientside delete for which row index is 1 . it works fine .
Now the 3 rd row who's row index is 2 is moved up .
if I delete 2nd row and in ondelete event I am unable to get the row object using the below script .
var rowObject = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
I found the eventArgs.get_itemIndexHierarchical() give 2 although I have just 2 rows in the grid . I think it should give 1 for the above script to work because I have now only two rows .
Due to this the row object is null .
Please help me .