jQWidgets Forums
Forum Replies Created
-
Author
-
October 3, 2018 at 2:07 pm in reply to: sorting problem with virtual grid sorting problem with virtual grid #102265
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
October 2, 2018 at 12:32 pm in reply to: sorting problem with virtual grid sorting problem with virtual grid #102235Hi,
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
October 1, 2018 at 5:29 pm in reply to: sorting problem with virtual grid sorting problem with virtual grid #102214Hi,
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
-
AuthorPosts