1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
    chandan.behura is on a distinguished road

      0  

    Default checkCombo

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,219
    Vote Rating
    859
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Have an All record in the store and detect when that items was checked and handle it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
    chandan.behura is on a distinguished road

      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.

Thread Participants: 1

Tags for this Thread