Login Register

Grid sorting problems when using dojox.data.QueryReadStore in 1.1.0 version

Hi,

When I tried to update my application from dojo 1.0.2 to dojo 1.1.0rc1 version i encountered a problem.

I am retrieving the grid data from a servlet using the dojox.data.QueryReadStore.
When I am trying to sort the table in the client side using clientSort=true all the grid data disappear and
I stay with an empty grid

The same code is working on dojo 1.0.2 version.

Here is the grid definition code:

<div dojoType="dojox.data.QueryReadStore" jsId="jsonStore" url="DojoServer/products"></div>

<div dojoType="dojox.grid.data.DojoData" jsId="model"  store="jsonStore" query = dataQuery          clientSort="true"></div>   

<div id="productGrid" jsId="productGrid" dojoType="dojox.Grid"   model="model" structure="layout"   canSort=myCanSort singleClickEdit="true"></div>

Where the DojoServer/products is a servlet which return json object.

When I run the same code using dojo.data.ItemFileReadStore which retrieve the same data from a file it works fine.

can you please help me?

thanks

Try this

I had a similar issue with sorting breaking the paging of the grid.

Try this solution by laca:
http://dojotoolkit.org/forum/dojox-dojox/dojox-grid-support/queryreadsto...