PDA

View Full Version : Store - Determine if dirty?



Tbaseflug
Dec 01, 2010, 7:56 PM
I have a store - tied to a grid - on the change event of the paging - I am firing off an ajaxevent where I update the rows - want to only update if a change was made - is there a isDirty check or something I can use?

Daniil
Dec 01, 2010, 9:45 PM
Hi,

Please see
http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Record&member=dirty
http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store&member=getModifiedRecords

Tbaseflug
Dec 01, 2010, 9:59 PM
Is there a way to determine that in the code behind?

Daniil
Dec 02, 2010, 8:25 AM
Hi,

No, there is not.

But you could determine this on client side and pass to a server as extra parameter of DirectEvent (Ext.Net 1.0) or AjaxEvent (0.8.x).

Tbaseflug
Dec 02, 2010, 2:29 PM
That is a good idea - never thought about that - thanks!!!