jQuery UI Widgets Forums Grid virtual scrolling

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • virtual scrolling #78251

    staganyi
    Participant

    I implemented virtual scrolling on my grid using the following post as a guide:

    http://www.jqwidgets.com/jqxgrid-virtual-scrolling-with-php-and-mysql/

    Everything is working fine but I have a question on how virtual scrolling actually works. I put the following js code “console.log(params);” in the rendergridrows function to see when it was triggered and what the params were. A sample output below:

    Object {startindex: 0, endindex: 19, data: Array[20]} – initial load
    Object {startindex: 16, endindex: 35, data: Array[36]} – page down
    Object {startindex: 0, endindex: 19, data: Array[20]} – followed by a page up

    This shows me that it makes a call for what it technically has already loaded (rows 0-19). Is this by design? If so, is there a way to turn it off to avoid making calls for data it has already loaded?

    Thanks

    virtual scrolling #78270

    Dimitar
    Participant

    Hello staganyi,

    In virtual mode, loaded data is not cached. This means that after “page down” only rows from 16 to 35 are loaded and rows from 0 to 15 are no longer loaded, hence the new request when you “page up”.

    Best Regards,
    Dimitar

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

    virtual scrolling #78300

    staganyi
    Participant

    Thanks for the reply Dimitar. Is this something that is planned for a future release (cached loaded data)?

    virtual scrolling #78323

    Dimitar
    Participant

    Hi staganyi,

    Such a functionality is not currently in our development plans.

    Best Regards,
    Dimitar

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

    virtual scrolling #78346

    staganyi
    Participant

    Ok thanks for the reply

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

You must be logged in to reply to this topic.