Aug 03, 2013, 6:31 AM
[CLOSED] Formpanel - set isDirty() to false onload of page
Hi,
In my cshtml page, i have a formpanel.
This formpanel has lots of controls within it.
On Ext.onReady() i set values to some of the controls, so for the formpanel FieldChange event is getting triggered.
Now on a buttons click (even when user has not changed any field value) i check for formpanel isDirty(). it always returns true.
As a thought is it possible to set isDirty of the form to false after setting control values in Ext.onReady event.
So as to trap user made change again through isDirty().
In my cshtml page, i have a formpanel.
This formpanel has lots of controls within it.
On Ext.onReady() i set values to some of the controls, so for the formpanel FieldChange event is getting triggered.
Now on a buttons click (even when user has not changed any field value) i check for formpanel isDirty(). it always returns true.
As a thought is it possible to set isDirty of the form to false after setting control values in Ext.onReady event.
So as to trap user made change again through isDirty().
Last edited by Daniil; Aug 13, 2013 at 3:47 AM.
Reason: [CLOSED]