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

How to get index of selected row(s) in OnRowDropping client event?

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 12 Oct 2010, 06:49 PM
I have the following javascript method defined:

  function rowDropping(sender, eventArgs) {           
                var selectedRows = sender.get_masterTableView().get_selectedItems();
                for (var i = 0; i < selectedRows.length; i++) {
                    var row = selectedRows[i];
                   
                    //need to get row's index in the grid

                }
}

How can I access the index (in the source grid) of each of the selected rows?

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 18 Oct 2010, 07:16 AM
Hi Ron,

Try using the private _itemIndexHierarchical property of the client GridDataItem object and see if it works for you.

All the best,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Ron
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or