Login Register

dijit.form.FilteringSelect

Disable User Input in dijit.form.filteringselect and remove Validation Icon

Hi there,

at the moment I'm using a dijit.form.filteringselect to display a simple pre-filled Dropdown. AutoComplete is disabled but still user input is possible.
The User may choose only between 4 values.

I have been looking around, but it seems like there is no way to use filteringselect as a simple replacement to the tag.
Of course, the most simple thing would be to use a system but I don't want to break the existing Dijit Look&Feel.

Or am I just trying to use the wrong Dijit for my purpose? Is there something like a simple dijit.form.select?

Dynamically adding items to FilteringSelect

Hello all,

I have a FilteringSelect which I have created from markup like so

<select dojoType="dijit.form.FilteringSelect" id="cmb1">
        <option value="1">aaa</option>
        <option value="2">bbb</option>
        <option value="3">ccc</option>
</select>

and now I want to add an Item dynamically to this list on the click of a button. I have tried the following.

var combo = dijit.byId("cmb1");
combo.store.newItem({text:"ddd", value:"4"}, null);

but I get the error "combo.store.newItem is not a function" in firebug.

Syndicate content