I think you can get the current offset by using uiData.getFirst().   I
don't know the best way to get that information into your generated
html.

Possibly bind that value to a hidden input field.


On 5/21/07, Sajja, Vinod K (Vinod) <[EMAIL PROTECTED]> wrote:




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