This is a migrated thread and some comments may be shown as answers.

Title or separator in combobox

0 Answers 52 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
BobDev
Top achievements
Rank 1
BobDev asked on 25 Oct 2012, 11:13 AM
Hi,

Is there a simple method to include a separator or sub-titles in the the list of items displayed in a combobox?

I use a template to render the item contents, and can change the text if the item from the server data is a separator, but it is still selectable. I suppose I am looking for a class or something that I can put on the item to make the item un-selectable.

My combobox has number of preferred values at the top of the list, but offers the user additional options that may be relevant in rare cases. I would like to visually separate the preferred options from the rarely used options.

Sample:
template: '# if (data.Divider != true) { #<span>${ data.RowLabel }</span> # } else { #  <div class="nonselectable">${ data.RowLabel}</div> # } # '

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
BobDev
Top achievements
Rank 1
Share this question
or