PDA

View Full Version : Grid coulmn sort



Appu
24 May 2011, 1:27 AM
Hi ,

right now i'm fixing some bugs , which someother written js .. i'm very new to extjs .. allowing gridcoulmns sorting , by clicking on the coulmn header's sort (Ascending and Descending).. wat i can do ?? :-/

Appu
24 May 2011, 1:30 AM
i have tried with coulmnModel sort


dataSetColModel=new Ext.grid.ColumnModel(dataSetColModelArray);
dataSetColModel.sortable = true;
dataSetColModel.defaultSortable = true;

friend
24 May 2011, 3:47 AM
Here's an example of a grid's column configuration, where sortable: true is set on the columns:



columns: [
{header: 'Order No.', dataIndex: 'orderNo', sortable: true, width: 90},
{header: 'Promise Date', dataIndex: 'promiseDate', sortable: true, width: 90, renderer: Ext.util.Format.dateRenderer('m/d/y')}
]