1. #1
    Sencha User
    Join Date
    Feb 2009
    Location
    India
    Posts
    67
    Vote Rating
    1
    arvindwill is on a distinguished road

      0  

    Default Unanswered: Dirtychange for combobox not working

    Unanswered: Dirtychange for combobox not working


    Attached the combobox to a panel with dirtychange listener.
    Code:
    listeners:{
                dirtychange:function(){this.createETextField(arguments)}
            }
    the function triggers when when some text was typed on the combobox but when selecting from the dropdown options this function is not called.
    Am i making any mistake or understanding the "dirtychange" event wrongly?

    thanks

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    I think "dirty" refers mainly to someone typing into the combo's input field. Otherwise, take a gander at the "change" and "select" events.

  3. #3
    Touch Premium Member
    Join Date
    Apr 2011
    Posts
    61
    Answers
    1
    Vote Rating
    0
    gbjk is on a distinguished road

      0  

    Default


    Whilst you're right, this presents a problem, because updateRecord respects the dirty flag of Fields.
    So if a form does loadRecord, and then you select a new value in a combobox, and then updateRecord, your record doesn't get updated.

    Am I missing something, or is this a bug?

Thread Participants: 2

Tags for this Thread