PDA

View Full Version : How I can change the record's position of store



iori0758
12 Jul 2011, 1:32 AM
I want to change the third record to the first record,I can use


var revord = store.getAt(3);
store.removeAt(3);
store.insert(0,record);

but My store is crud store,If execute function store.remove and store.insert,it will do delete and insert on database.
Can someone tell me a good way to do it but not do remove and insert to database.
thanks in advance.
jerome