1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    239
    Vote Rating
    0
    senacle is on a distinguished road

      0  

    Default [SOLVED] Radio not reset to their default values

    [SOLVED] Radio not reset to their default values


    Hello,

    I'm displaying a form with radio inside.

    When i click on the reset button, the radio button are not reseted to their default values.

    Same problem with the Ext3.0 examples ?

    Some bug ?

  2. #2
    Ext JS Premium Member
    Join Date
    Jun 2008
    Location
    Belgium
    Posts
    263
    Vote Rating
    1
    maquejp is on a distinguished road

      0  

    Default


    how do you invoke the reset? your_formname.reset()

    I have experienced the same behaviour and I replace this by reloading my form. Which in sure also in case of concurrent access to have the most up to date data...

  3. #3
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    239
    Vote Rating
    0
    senacle is on a distinguished road

      0  

    Default


    I'm using

    Code:
    Ext.getCmp('option_stat').form.reset();
    Where 'option_stat' is the id my formpanel.

  4. #4
    Ext JS Premium Member
    Join Date
    Jun 2008
    Location
    Belgium
    Posts
    263
    Vote Rating
    1
    maquejp is on a distinguished road

      0  

    Post


    It is what I used but it was emptying the form and resetting to previous value so I written
    something like
    Code:
        
    fp_screening_prj.getForm().reset();
    fp_screening_prj.getForm().load({
    ...

  5. #5
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    239
    Vote Rating
    0
    senacle is on a distinguished road

      0  

    Default


    I've asked in the Extjs 3.0 bug forum :

    it's fixed in the Extjs3.0RC3 : http://extjs.com/forum/showthread.ph...626#post351626

Thread Participants: 1