jQWidgets Forums

jQuery UI Widgets Forums Grid Get Displayed Row index

This topic contains 2 replies, has 2 voices, and was last updated by  Derek Broughton 7 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Get Displayed Row index #98377

    Derek Broughton
    Participant

    The question has been asked before, but I can’t find an answer anywhere. How do you find the current displayed row index?

    After changing a value on the (sorted) grid, I want to recalculate the difference between values on adjacent rows. All of the rowindex-type methods seem to return the bound index, while I need the index into the getrows array. It appears I may have to loop through the getrows array to find the current row by ID.

    Get Displayed Row index #98378

    Stanislav
    Participant

    Hello Derek Broughton,

    Take a look at this topic: Link

    I hope it works for you, if not, please send us an example for a better overview.

    Best Regards,
    Stanislav

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

    Get Displayed Row index #98382

    Derek Broughton
    Participant

    Well, that’s what I said 🙂 So, there’s no way to actually retrieve the current displayed row index.

    Why deprecate a perfectly useful API in favor of using an awkward loop?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.