-
28 Nov 2012 12:00 AM #1
checkboxgroup setValue does not work with a string of names
checkboxgroup setValue does not work with a string of names
Hi,
I have a checkboxgroup with checkboxes defined as
After the checkbox group is rendered, if I doCode:id: 'daysCheckboxGroup', xtype: 'checkboxgroup', fieldLabel: 'Select Days', columns: 4, items: [ { name: 'day_1', inputValue: 1, boxLabel: 'Mon' }, { name: 'day_2', inputValue: 2, boxLabel: 'Tue' } { name: 'day_3', inputValue: 3, boxLabel: 'Wed' }]
Ext.getCmp('daysCheckboxGroup').setValue('day_1,day_2');
it does not work but according to the API docs it should.
Passing an array of booleans to setValue works but I want to pass a string of names.
-
28 Nov 2012 9:54 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
What version of Ext JS 4.x.x are you using? We could not reproduce this.
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.
-
30 Nov 2012 10:35 PM #3
Its ver. 3.3.1.
All other overloaded versions of setValue() work but not this one.
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote