View Full Version : sortField

19 Jan 2009, 2:58 AM

I my application i have documents grid and a form where I have another grid of document positions.

In document positions grid I use combobox of subjects. Whenever I submit a form, a sort field of subjects is submited to my documents grid and I get an error.

All my objects (document grid, document form and document positions form) are subclasses of standard extjs classes. The sort parameter shouldn't be submited when another object is loading dataset (Dataset names are not the same).

There is a lot of code, so I didn't post it.

Any help appreciated.

22 Jan 2009, 3:07 AM

My application is divided into the modules. How can a datasource in other module remember a sort field from another module. Then an application crashes.

I checked paging.js and I have everything as it should be.

22 Jan 2009, 3:52 AM
Are you saying it is submitting the last value shown in the editor of the grid?

You can fix that by relocating the editor outside the form:

var grid = new Ext.grid.EditorGridPanel({
viewConfig: {
getEditorParent: function(){
return document.body;

23 Jan 2009, 3:04 PM
Actually I resolved this issue.
The problem was in the line

Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

Whenever I changed a grid all the sort parameters were transmitted from a previous grid, resulting in an error as order parameters were not found in new grid.