-
22 Apr 2009 4:57 AM #1
Multiple line select box
Multiple line select box
I have not found any way to construct a multiple line scrolling box that works like an HTML SELECT with size > 0, like this code:
Resulting in this:Code:<select size="5"> <option value="foo">foo</option> <option value="bar">bar</option> <option value="blech">blech</option> </select>
A grid does not work, because I don't want any headers or gridlines or resizing, etc.
Last edited by tkmilbaugh; 22 Apr 2009 at 5:04 AM. Reason: add image
-
22 Apr 2009 6:11 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 29
use DataView

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
22 Apr 2009 6:14 AM #3
ComboBox?
MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
22 Apr 2009 6:17 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 29
Negative, it's not what he wants.
To be honest, I don't see why there is not multi-select form field in the framework.
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
22 Apr 2009 6:28 AM #5
Yeah, noticed that after reread that I misread the post. I was looking at ComboBox to see if it could be extended to offer singleSelect:false and instead of trigger to open, I guess just render it open.
MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
22 Apr 2009 6:31 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 29
well, then you have the filter box up top, which is not required for a multi-select box.

hence, we're back to the data view (used in the combo of course), with some field validations added.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
22 Apr 2009 9:10 AM #7
Thanks for your suggestions, I have a data view, but am having trouble making it look like I want it:

How would I force a scroll bar to always appear, and disable the cursor appearing inside a selected item?
-
22 Apr 2009 9:58 AM #8Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 29
You need to set the element to scroll: auto in the CSS.
Also, you'll need to do things like setup validation and invalid marker methods.
ideally, this should extend 'field'
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.


Reply With Quote