View Full Version : [CLOSED] Textfield extension error

Jun 19, 2012, 10:27 AM

Jun 19, 2012, 12:58 PM

I would try to debug.


Maybe you will determine the problem.

Jun 19, 2012, 1:21 PM
I'm debugging my plugin and I seeing that my method customIsDirty is called several times during loadRecord.
In version 1.3 of Ext.NET the same plugin works, I know that isDirty method is called more often in v2 for any reason and it makes my field being empty.

The same case during keydown event.

I'm thinking to pass a parameter to customIsDirty like a workaround to avoid the problem but it isn't an option because it makes me change metodology of validation, any other idea?

Jun 19, 2012, 2:19 PM
I solved it creating another function in my extended control.
It was problem of calling the isDirty function in version 2

Jun 19, 2012, 2:25 PM
Now in Ext.NET v2 the Change event is fired when a user is typing, not just on blur. It internally calls the isDirty method. I think these facts cause the behavior you have described.

I think calling the reset method should be done in some other place. Or, maybe, you could just listen the DirtyChange event instead of overriding the isDirty method.

Jun 19, 2012, 2:44 PM
Yes, I have done another method to avoid this behaviour.

Thanks for all.