jQWidgets Forums
Forum Replies Created
-
Author
-
August 4, 2015 at 5:39 pm in reply to: Refreshing Grid calls server multiple times Refreshing Grid calls server multiple times #74516
Realized what was going on. Ignore this post please.
August 4, 2015 at 5:16 pm in reply to: Clearing Filters When Updating Source Clearing Filters When Updating Source #74514If I follow this approach though, I won’t be able to make use of the grid’s native filtering and sorting. I mean, I would have to essentially implement a custom ajax caller and then still allow the grid to use its own at the same time?
August 3, 2015 at 8:43 pm in reply to: Clearing Filters When Updating Source Clearing Filters When Updating Source #74472pass all necessary data to the server in a single, custom, Ajax call.
How would I go about doing that? Is there a way to hijack the ajax call done by the grid?
It is hard to tell. There isn’t a long enough delay between fetching data for me to type in a couple more characters. I’m noticing this is happening mostly on queries that take longer than a second.
June 11, 2015 at 9:00 pm in reply to: Clearing Filters When Updating Source Clearing Filters When Updating Source #72356Are there any plans to change this functionality? Even following your advice, I still end up with extra server calls and it actually even takes longer now because of the bindingcomplete pauses between each call.
June 10, 2015 at 12:41 pm in reply to: Clearing Filters When Updating Source Clearing Filters When Updating Source #72270So you’re saying the solution to my issue is to change the data source and set some flags so that it calls binding complete several times and each time does the next operation? Essentially making the async behavior of the grid synchronous? Why not just flip the async flag anyway?
June 9, 2015 at 2:52 pm in reply to: Clearing Filters When Updating Source Clearing Filters When Updating Source #72226I just noticed this affects paging too. When I change source, if I’m on page 3 it remains on page 3… I can do “.jqxGrid(‘gotopage’, 0);” but then I’m sending yet another request to the server…
One to go to page 0
One to clear filters
One to get the new data sourceAnd the worst part is they don’t return in the order I sent them, so sometimes I get the new data source set, then I get the clear filters with the previous data source and I end up seeing old data. Why does this happen? I’m using version 3.7.1… I saw in another thread that this issue shouldn’t be happening as of v2.8.3.
June 9, 2015 at 12:35 pm in reply to: Clearing Filters When Updating Source Clearing Filters When Updating Source #72213Yes… I set a flag on the grid if it has been instantiated and next time it refreshes its data it does this:
var dataAdapter = new $.jqx.dataAdapter(source, { loadComplete: function (data) { }, loadError: function (xhr, status, error) { alert(error); } }) $(jqxGridId).jqxGrid({ source: dataAdapter });
I made a jsfiddle that kinda shows the issue I’m seeing. When virtualMode is false, the filter is removed on data refresh. When it’s set to true, the filter remains. The jsfiddle is here.
-
AuthorPosts