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

Getting row id during multiselect

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sarthak
Top achievements
Rank 1
Sarthak asked on 23 Oct 2012, 04:09 PM
I have a client side onrowselect function and I am trying to know the row its selecting each time (multi  select using shift/drag). Is there a way to reference that. I don't need to know the row that triggered the event as its multi select, I want to know which row is being selected in each call.

Thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Oct 2012, 05:23 AM
Hi,

I guess you want to know the index of the selecting row in OnRowSelecting event.

ASPX:
<ClientEvents OnRowSelecting="RowSelecting" />

Javascript:
<script type="text/javascript">
  function RowSelecting(sender, eventArgs)
    {
        alert("Selecting row: " + eventArgs.get_itemIndexHierarchical());
    }
</script>

Thanks,
Shinu.
Tags
Grid
Asked by
Sarthak
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or