16 Feb 2012 8:47 AM #1
Answered: Are there any plans to include some form of multi-select field in ST2?
There has been some discussion on this already here:
Just wondering if there are any plans to provide a multi-select field in Sencha Touch 2 (perhaps a config property for the existing 'select' field), or do I need to roll my own?
For now you would need to create your own. The API is pretty frozen for 2.0 release.
16 Feb 2012 11:09 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
For now you would need to create your own. The API is pretty frozen for 2.0 release.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.
16 Feb 2012 11:20 AM #3
I will be hacking on your ST1 extension to achieve that. I hope you don't mind?
18 Feb 2012 7:46 PM #4
Multiselect field class
I finally realized that your version 1.1 extension is too far removed from ST2 to re-work. However, I learned a lot about your techniques from reviewing your code, and that was of value to me (like using a CSV string in the text field, etc.). That being said, I created a new class that extends/overrides Select.js in a minimalistic way to provide a multi-select field. It has been tested in ST2 Beta 3, and it seems to be working well so far. The code can be found at this forum thread:
This multi-select field class uses a dataview list only, not a picker (for obvious reasons). I am sure there are some things that may be better optimized in the code, but this is at least functional and tested. Hope this proves useful to whomever may need it until ST2 comes with its own Multi-select field. Let me know what you think.
Last edited by shaneavery; 19 Feb 2012 at 6:06 PM. Reason: Linked to extension forum post.