pkvenu
19 Dec 2011, 3:47 PM
Hi guys ,
I have a store which has a list of objects.
Model:
Ext.regModel("PF", {
fields:
[
{ name: 'ParkingFacilities', type: 'auto' },
{ name: 'ParkingZones', type: 'auto' },
{ name: 'Facilities', type: 'auto' },
{ name: 'ParkingSortFacilityID', type: 'auto' }
]
});
Store:
App.stores.ParkingFacility = new Ext.data.Store({
model: 'PF',
autoLoad: true,
listeners: {
dataChanged: function (store) {
console.log('dataChanged');
}
}
});
If you see the image below, I am trying to sort all the object in the facility model by the field distance. But the item does not seem to be sorted.
JSON Returned:
30167
Can some one show me a sample on how to sort the data. I am really stuck at this.
Any help would be greatly appreciated.
Thanks ,
Pawan
I have a store which has a list of objects.
Model:
Ext.regModel("PF", {
fields:
[
{ name: 'ParkingFacilities', type: 'auto' },
{ name: 'ParkingZones', type: 'auto' },
{ name: 'Facilities', type: 'auto' },
{ name: 'ParkingSortFacilityID', type: 'auto' }
]
});
Store:
App.stores.ParkingFacility = new Ext.data.Store({
model: 'PF',
autoLoad: true,
listeners: {
dataChanged: function (store) {
console.log('dataChanged');
}
}
});
If you see the image below, I am trying to sort all the object in the facility model by the field distance. But the item does not seem to be sorted.
JSON Returned:
30167
Can some one show me a sample on how to sort the data. I am really stuck at this.
Any help would be greatly appreciated.
Thanks ,
Pawan