Hybrid View
-
29 Nov 2012 3:30 AM #1
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/)
Coming like that as defaultCode:{ 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 }); } } },
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
-
1 Dec 2012 7:42 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Dec 2012 11:02 PM #3
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.


Reply With Quote