jQWidgets Forums

jQuery UI Widgets Forums Grid GetDisplayRows not returning expected rows

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Stoev 7 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • Pfhoenix
    Participant

    I’m using the latest version.

    I have a grid with 100 rows, paged, with a page size of 20. When I call ‘getdisplayrows’, the array returned is every row in my grid (all 100), when I would expect to get only the 20 visible on the current page. Is this the intended behavior? Your documentation says ‘getdisplayrows’ takes into account sorting, filtering, and paging. This happens when there is no sorting or filtering applied (paging seems to have no effect at all).


    Hristo
    Participant

    Hello Pfhoenix,

    You could use the getpaginginformation to get more detailed information and you could use this to ‘slice’ only this records of the current page.
    Also, you could use the getdisplayrows when data is filtered or sorted (or both) and process it.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com


    Pfhoenix
    Participant

    Do you even read the entire post before responding? I told you I was trying to use getdisplayrows. I told you exactly what the problem was, and you didn’t respond to my actual question.

    I’ll add this here, and adding this here does not absolve you from answering the question I asked above : your source still has the older ‘getvisiblerows’ function that does exactly what it says. However, the function is commented as deprecated and not listed in your documentation/API. I will be using ‘getvisiblerows’ until such time that it disappears from source. Why did you guys decide to replace ‘getvisiblerows’?


    Peter Stoev
    Keymaster

    Hi Pfhoenix,

    We do changes our API is based on our principles. I think my colleague explained you very clearly how to find a solution. You have API for getting the page size, page number etc. and you have API to get all rows. We have other methods which are deprecated, too and we will have such in the future as well.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.