-
10 Oct 2012 2:12 AM #1
Unanswered: Is possible for Multiselect set prefix for each value?
Unanswered: Is possible for Multiselect set prefix for each value?
Subject. I want add prefix for final value if selected by another check/radio I have tried
It doesn't work well I have a lot of calls for the 'change'Code:xtype:'multiselect', listeners:{ change:function (element, newValue, oldValue) { if (Ext.getCmp('min-choose').getValue()) { console.log('In:' + newValue); element.suspendEvents(); element.setValue('*/'+ newValue); element.resumeEvents(); } console.log('new:' + newValue + ' OldValue:' + oldValue); } }
-
15 Oct 2012 6:45 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
So each row that is selected you want a prefix to them?
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.
-
16 Oct 2012 3:47 AM #3
-
16 Oct 2012 4:01 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
If it's going to be the same in all records then you can use the convert method in the model. Or you can iterate through the values to add it. You can extend it and override the getValues method
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.


Reply With Quote