Sunil
Sunil

Reputation: 191

How to make non-editable combo box in dojo?

I want to make non-editable combo box in following code. I am using ESRI ArcGIS Java Script API 3.2. Dojo/dijit is tightly integrated in this API.

What I tried :

1.I changed the read only value but after making true my combo box is grayed out and not active.

2.I have checked the dojo/digit API reference and tried using by "disabled" but its disabling combo box and not able select any values.

3.Researching on Google too.

Software's : ArcGIS Java Script API 3.2 & Dojo version 1.6

so any help will be great !!!

thanks in advance : )

Complete code at JsFiddle

Code :

             dojotype="dijit.layout.ContentPane"
             region="top"
             style="height:25px;">
        <select id="mySelect" 
             dojotype="dijit.form.ComboBox"
             style="width:250px;font-size:18px;"
             autoComplete="true",
             forceValidOption="false",
             readOnly = "false",
             value="Select"
             fetchProperties="{sort:[{attribute:'name', descending:false}]}" 
             onchange="applyLayerDef(this)">

Upvotes: 4

Views: 4924

Answers (1)

iH8
iH8

Reputation: 28638

What you need is dijit/form/FilteringSelect

Upvotes: 2

Related Questions