I am trying to write a handler to select a range of datatable rows
between a mouse down (start row) and shift+mousedown ( end row).

Every thing works fine on the first page as I am able to get 'rowIndex'
(using event.srcElement.parentNode.rowIndex for IE  or
event.currentTarget.rowIndex otherwise), based on the browser in the
'rowOnMouseDown' event handler.

Now the logic does not work if I perform the same operations on any
other page. 'RowIndex only gives the index relative to the current page
that is displayed in the datatable.

 

My question is how can I get the current page number information from
the event object so that I can add the page offset to get the correct
row index.

Is there any other way ?

 

 

Thanks,

 

 

Vinod

 

Reply via email to