PDA

View Full Version : Grid does't sort data if I insert data dynamically



sinnus
13 Oct 2012, 12:42 AM
Steps to reproduce:
Open example http://dev.sencha.com/deploy/ext-4.0.0/examples/restful/restful.html
Sort grid by ID column
Add row
The row will be at top of the grid instead of bottom
The question: how to add sort functionality if I insert row dynamically.

Thank you!

kevin.chen
17 Oct 2012, 1:46 PM
store.sort({property:'id', direction: 'ABC'})