Results 1 to 3 of 3

Thread: checkCombo

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
      0  

    Default checkCombo

    Hi All,
    I have done a checkCombo i.e checkBoxes inside a combo.

    The issue i am getting is , unable to make default select all .

    I have done.(got the checkcombo from http://extjs.dariofilkovic.com/)
    Code:
    {  xtype : 'checkcombo',
                                 valueField: 'region',
                                 id : 'regionId',
                                 displayField: 'region',
                                 store: 'deliveryGroupPerformances.RegionStore',
                                 addAllSelector: true,
                                 action : 'selectRegion',
                                 listeners: {
                                        afterrender: function(display){
                                            display.tip = Ext.create('Ext.tip.ToolTip', {
                                                target: display.el,
                                                trackMouse: true,
                                                dismissDelay: 5000
                                            });
                                        }
                                    }
                                    },
    Coming like that as default
    Screen shot 2012-11-29 at 4.56.25 PM.png
    i want to do like that for default in render of the component

    Screen shot 2012-11-29 at 4.56.36 PM.png

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    Have an All record in the store and detect when that items was checked and handle it.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    Have an All record in the store and detect when that items was checked and handle it.
    On checking All , all records are getting checked.


    I am getting all values of the store in a variable and through setValue() am able to check all the values inside the combo but the issue is Instead of displaying 'All' in combo its showing all the individual values separated by a comma.

    How i will check all values inside the combo will able to display 'All' in combo's display field.

    I mean when am checking all values it should show All in display field of the combo.


    Help please.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •