PDA

View Full Version : ComboBox grouping



lorezyra
18 Jun 2014, 2:15 AM
Is there a way to have comboBox support groups as the <select> tag does with the <optgroup> tag does when combined with the <option> tags?

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup



<select>
<optgroup label="Group 1">
<option>Option 1.1</option>
</optgroup>
<optgroup label="Group 2">
<option>Option 2.1</option>
<option>Option 2.2</option>
</optgroup>
<optgroup label="Group 3" disabled>
<option>Option 3.1</option>
<option>Option 3.2</option>
<option>Option 3.3</option>
</optgroup>
</select>

glopes
18 Jun 2014, 2:16 PM
This might help: http://www.sencha.com/forum/showthread.php?132328-CLOSED-ComboBox-using-Grid-instead-of-BoundList


Here you can replace your combo box bound list with a grid that supports Grouping.

lorezyra
18 Jun 2014, 4:24 PM
Great point. Grid grouping would present the data as I wish. However, grid does place a lot of overhead on the dom, does it not?

lorezyra
18 Jun 2014, 7:42 PM
BTW, I found this to work perfectly for my needs: https://github.com/rixo/GridPicker