jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Rows Index

This topic contains 3 replies, has 3 voices, and was last updated by  Dimitar 8 years, 12 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid Rows Index #8696

    sreeni379
    Member

    Hi,

    I have problem in reading row index number after sorting . Is there any feature for manually  setting row  index feature .

    Thanks

    sree

    Grid Rows Index #8712

    Dimitar
    Participant

    Hello sree,

    The rows have two indexes – bound index, based on their initial position in the grid and visible index, based on their current position. When you sort the grid, the bound indexes stay the same, while the visible indexes are reordered as per the sort.

    You can get the bound index of a selected row with the getselectedrowindex method:

    var rowindex = $('#grid').jqxGrid('getselectedrowindex');

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Grid Rows Index #84505

    chronosx7
    Participant

    Is there a way to get the visible index of a given row?

    Dimitar has mentioned the visible index in two forum answers but never has mentioned a way to get it even if by using the bound index of a row.

    I need to tab throughtout the cells and rows of my grid but, since it uses the bound index, if the table has been ordered the focus can jump from the sixth visible row to the second if that’s where the next bound index is visually located after ordering.

    Maybe I could craft a solution based on selected cells, visible indexes and events…. But there does not seem to be a way to get the visible index of a row in the docs.

    Grid Rows Index #84636

    Dimitar
    Participant
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.