[Dojo-interest] EnchancedGrid client sort using a jsonRestStore

Deno Vichas dvichas at autoreturn.com
Wed Mar 17 14:38:52 EDT 2010


That suggestion doesn't seem to work.

...

dojo.require("dojox.data.ClientFilter");
dojo.require("dojox.data.JsonRestStore");
...

batches: new dojox.data.JsonRestStore({target:"/lien/batch/", idAttribute:"id", queryOptions:{cache:true} }),

...


- deno



-----Original Message-----
From: dojo-interest-bounces at mail.dojotoolkit.org [mailto:dojo-interest-bounces at mail.dojotoolkit.org] On Behalf Of Jaanus Heeringson
Sent: Wednesday, March 17, 2010 1:34 AM
To: dojo-interest at dojotoolkit.org
Subject: Re: [Dojo-interest] EnchancedGrid client sort using a jsonRestStore

To sort a jsonRestStore based grid on the glient you need to:

1. Requre dojox.data.ClientFilter before the jsonRestStore
2. Set the queryOptions to use the local cache for the query
(queryOptions="{cache:true}" or ...queryOptions: {cache:true} ...)
3. Success!

You need to remember that this only sorts the data that is in the
cache so only usable for smaller ammounts of data that you load fully.

On Mar 17, 8:47 am, Wei CDL Huang <hw... at cn.ibm.com> wrote:
> I don't think either DataGrid or EnhancedGrid support this "clientSort"
> attribute.
>
> Though I'm not very familiar with it, but you may take a look at
> "dojox.data.ClientFilter" in case it's helpful in your case.
>
> - Evan
>
>
>
> Does the clientSort for the dataGrids actually do anything?  I can't
> find any reference to it in the source.
>
> My problem is that my Enchanced grids using a JRS tries to query my
> server, using an invalid url, to sort the columns.  I'd like to have my
> grids sort without pinging the server.
>
> Thx,
>
> deno
>
> _______________________________________________
> FAQ:http://dojotoolkit.org/support/faq
> Book:http://docs.dojocampus.org
> Dojo-inter... at mail.dojotoolkit.orghttp://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest at mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


More information about the Dojo-interest mailing list