1. #91
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      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,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      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,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar