[CLOSED] Textfield extension error

  1. #1

    [CLOSED] Textfield extension error

    Last edited by Daniil; Jun 19, 2012 at 2:51 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I would try to debug.
    debugger;
    PropertyName.getValue();
    Maybe you will determine the problem.
  3. #3
    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?
  4. #4
    I solved it creating another function in my extended control.
    It was problem of calling the isDirty function in version 2
  5. #5
    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.
  6. #6
    Yes, I have done another method to avoid this behaviour.

    Thanks for all.

Similar Threads

  1. [CLOSED] Colorbox textfield extension
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Jul 25, 2012, 2:04 PM
  2. [CLOSED] custom validation error message for textfield?
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 11, 2011, 9:45 AM
  3. [CLOSED] Custom Error Message TextField
    By imaa in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 13, 2011, 6:23 PM
  4. TextField DirectEvent Blur Error
    By David Pelaez in forum 1.x Help
    Replies: 5
    Last Post: Dec 21, 2010, 12:32 PM
  5. Replies: 2
    Last Post: Oct 06, 2008, 12:47 PM

Tags for this Thread

Posting Permissions