jQWidgets Forums

jQuery UI Widgets Forums Grid Vertical Scrolling: First 19 records acting weird

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

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

  • guidov
    Participant

    Hi,

    I am new to JQWidgets but after a couple of days writing some code to convert our current data set the one that JQX accepts, I found a strange thing.

    I use a grid with vertical scrolling enabled, this is needed because our records could go over a million. But for testing purposes, I only tested with 50.000 records so far.

    From record 20 to 50.000 the vertical scrolling works like a charm! Awesome! But the first 19 records are acting strange when I scroll. It reloads the data after scrolling as it should, but it moves the records up, which is weird. To show you exactly what I mean, I created a short video: http://youtu.be/CJYEoHV2R0M I hope that the video clears out what I’m struggling with.

    Does anyone of you know what I am doing wrong? Since there are 19 div containers that contain rows, could be the problem there?

    Sincerely,
    Guido


    Peter Stoev
    Keymaster

    Hi Guido,

    When the Grid finds out that there are no loaded records, it calls “rendergridrows” and renders the next set of records. That is what happens on your side, too.

    Best Regards,
    Peter Stoev

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


    guidov
    Participant

    Hi Peter,

    Thanks for replying!

    It is logical that it needs to load new records when there are none. But the thing is that my grid has loaded items, as you can see in the video. It reloads the grid on the scroll action. All very logical, but why is it that only the first 19 records act weird and not all of them. What causes those records to act strange?

    Is this a known behavior occurrence?

    Thanks in advance!

    Sincerely,
    Guido


    guidov
    Participant

    I solved the error.

    After looking over my code really closely, I saw that I used the ‘data’ variable in your example as a global variable, instead of local. This caused the weird behavior.

    Sincerely,
    Guido


    Peter Stoev
    Keymaster

    Hi Guido,

    Thanks for the update.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.