Forum
05:40
Moderators
30/10/2007
Hello,
Discussed many times. Will be maybe in 3.7 release.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Mike/Tony how would this work. Only the first page's data is returned, you don't want 10000 accounts passed over the network to the browser so you can only show 10 on a page, when you now do client side filtering, only the first 10 rows (as in this example 10 rows per page) will be filtered, you would loose the data that would have come up in the filter from page 2 and up? Am I not understanding you correctly Mike or what?
22:21
16/02/2010
Hi Renso,
In answer to your first question - client-side filtering usually just filters the visible data. Google "javascript grid," click on the first result, and I believe you'll find an example: http://dhtmlx.com/docs/product.....htmlxGrid/. From what I understand, that grid implementation offers both methods of filtering, client-side and server-side.
In answer to the last: I think you are understanding correctly. Some client-side features - like filtering and sorting - are precluded by very large data sets. Consider, for example, 100,000 rows of grid data. As you suggest, client-side filtering would not be desirable in such a case, due to the performance issues.
But in other cases, where there are, e.g., several hundred rows of grid data, or even fewer, it becomes quite feasible, not to mention convenient for the user and better-performing, to load all of that data to the client-side all on one page and have it sorted there and filtered there.
Thanks,
Mike
01:35
08/03/2010
Local searching was possible for a long time.
You just have to decide what "local searching" means to you and implement override the "load" functionality through custom function. Per wiki and docs, 'grid.p.datatype' can be a function. All "load" requests, both with "filter" and without, are routed to it, instead of $.ajax when grid.p.datatype is a function.
Just parse the filter rules by hand in the browser and load the filtered data back into grid.
My definition of "make jqGrid work against local storage" is:
Have actual COMPLETE data sit in the browser. Say, an array with some 35 rows are attached to grid.p.dataStore.data.
Set up the function that reads paging, sorting, filtering arguments in the 'postdata' and returns proper subset of the data back (through a call-back like gridObj.addJSONData() ) . Attach that function to grid.p.datatype
That's it.
Example is here: http://www.accentsolution.com/.....store.html
(Posting date - April 2010. Link may be gone in a few months)
01:43
16/02/2010
Hi ddotsenko,
Thanks very much for that outline of how to implement this feature myself. As you say, it is possible to do. I would certainly hope so - I requested it!
If need be I'll write up and use my own filter, since it doesn't seem too time-consuming to write. But given that it's such a useful (and, I think, normal) feature, I thought I would request it for the official jqGrid package.
Thanks again,
Mike
20:38
Moderators
30/10/2007
Hello,
We are just in alfa release of this feature. We will make it offically soon.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
81 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66