View Full Version : How to forcefully mark/unmark grid record as dirty

9 Jul 2012, 6:25 AM
We have a grid in which we want to allow user to change the order of records.

For this, we are using dragNdrop and also have provided buttons - Move Up and Move Down - which remove and insert records at the correct index.

The issue is that after change of order, user does not get to see the record as dirty.

Is there any way through which we can force the record to appear as dirty?

And if required (as in the case when user puts the record in its original position) then to un-mark it from being dirty?

Thanks for any help in advance.

PS: ExtJS version 4.1

9 Jul 2012, 2:08 PM
Have a look at setDirty() / commit()