This is a migrated thread and some comments may be shown as answers.

[Solved] Client Side middle row Delete give problem for all rows below it .

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pabanas
Top achievements
Rank 1
Pabanas asked on 18 May 2009, 04:30 PM

           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 .

1 Answer, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 21 May 2009, 12:44 PM
Hello Pabanas ,

Please refer to the reply I provided in the other forum thread you opened with regards to this subject:
http://www.telerik.com/community/forums/aspnet-ajax/grid/client-side-delete-gives-wrong-row-index.aspx

Best,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Pabanas
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or