jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • roman123
    Participant

    Hi,

    Why can’t I use loadServerData? It’s a documented API, which in this situation doesn’t seem to work properly.
    Can you please look at the example I posted initially?
    You only need to open the console, scroll through the list and you’ll see at least the sort prints, which shouldn’t happen and sometimes it throws an exception.
    Unless I’m doing something wrong, this looks to be a bug in jqxGrid.

    Roman


    roman123
    Participant

    Hi,

    I’m updating the grid via a websocket, so using loadServerData is the only option I know of.
    Another key aspect is the use of virtual mode, so with huge tables only the visible part is loaded as needed. Your example loads all the data at once, so it’s not applicable to my problem.
    When scrolling through a virtual and sorted grid and when it tries to load additional data, only then the problem is triggered. For some reason the grid tries again to sort the received data and sometimes produces that exception.

    Roman


    roman123
    Participant

    Hi,

    The problem is the sort is not initiated by my code, this is the call trace for the source.sort() function:

    sort @ (index):37
    sortby @ jqx-all.js:109
    dataview.update @ jqx-all.js:93
    q @ jqx-all.js:93
    l @ jqx-all.js:93
    callDownloadComplete @ jqx-all.js:19
    K @ jqx-all.js:19
    (anonymous) @ (index):54
    setTimeout (async)

    I’m simply calling the callback here I got from loadServerData(). The error case is identical, except that it doesn’t make it into my source.sort() function.
    My question is: why is that callback attempting to sort anything? It just got the sorted data back from the server.

    Roman

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