1. #91
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    96
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    The line I posted should remove the entire CheckboxGroup, including all contained checkboxes.

    Are you saying it doesn't?

  2. #92
    Sencha User
    Join Date
    Oct 2010
    Posts
    49
    Vote Rating
    0
    Komal Vaswani is on a distinguished road

      0  

    Default


    Yes it does not remove all the previously generated checkboxes from the form , it only overwrites with the new checkboxes. So if the second time less checkboxes are generated then it overwrites only that many of previously generated checkboxes.
    I hv attached one image. In this when I select Iris from combobox then 3 checkboxes are generated but when I select oracle then only one checkbox should be generated...but here it only overwrites the first checkbox of Iris with oracle and the remaining checkboxes of Iris remain on the form..

  3. #93
    Sencha User
    Join Date
    Oct 2010
    Posts
    49
    Vote Rating
    0
    Komal Vaswani is on a distinguished road

      0  

    Default


    Hi Condor,
    Thank you so much for ur help...finally my problem is solved..now can u tell me how to get the value of checked checkboxes?? I hv tried the following
    Code:
    alert(Ext.getCmp('checkGroup').getValue());
    But its only shows the [object,object].

    Thanks,
    Komal

  4. #94
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    96
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    getValue() returns an array of the selected checkboxes. What kind of output would you like to have?

  5. #95
    Sencha User
    Join Date
    Oct 2010
    Posts
    49
    Vote Rating
    0
    Komal Vaswani is on a distinguished road

      0  

    Default


    Hi,
    I want the name of the selected checkboxes instead of [object,object].

  6. #96
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    96
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Names? Don't you mean inputValues?
    Code:
    var checkboxes = Ext.getCmp('checkGroup').getValue(), values = [];
    Ext.each(checkboxes, function(cb) {
      values.push(cb.inputValue);
    });
    alert(values);

  7. #97
    Sencha User
    Join Date
    Oct 2010
    Posts
    49
    Vote Rating
    0
    Komal Vaswani is on a distinguished road

      0  

    Default


    Hi Condor,
    Thank u so much.... u hv helped me a lot..
    Thanks,
    Komal

  8. #98
    Sencha User
    Join Date
    Mar 2013
    Posts
    3
    Vote Rating
    0
    marisradu is on a distinguished road

      0  

    Default It seems it does not hide form fields labels initialized with hidden:true

    It seems it does not hide form fields labels initialized with hidden:true


    One thing I noticed is that it you init a field (in my case combo) with hidden: true, the label is still visible, running hide() on the field hides the label to.