PDA

View Full Version : Table to Grid Help



EricBrian
16 Oct 2007, 11:20 AM
The example given on this page:
http://extjs.com/deploy/ext/examples/grid/from-markup.html

Is there a way to tell the column sort that the data is of a certain type?

As it is now, my tables sort:

1
10
2
20

instaed of

1
2
10
20


Thanks! :)

Eric

Animal
16 Oct 2007, 11:25 AM
http://www.extjs.com/deploy/ext/docs/output/Ext.data.Record.html#create

The fields Array that is passed to the Reader is a config object for the Record constructor creation. Set a sortType for that field.