Combobox for API 3.1??

505
2
Jump to solution
11-18-2012 07:18 PM
SunilPalkar
Occasional Contributor
Dear All,

Can Combo-box  supported for version 3.1 ( ArcGIS Java Script API) ??

I am looking similar example here  ??

Any help will be great..

Thanks in advance : )
0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Frequent Contributor
Yes, it still works. One of the Dojo changes that happened (I don't recall exactly when it happened) is that you set the store for a dijit using .set("store", store) instead of .store = store.

Here's a version of the page from the blog post that uses 3.2:  http://jsfiddle.net/4yghv/

The key line of code is:
dijit.byId("mySelect").set("store", store);


I also modified the code to use OBJECTID as the store's identiifer. This causes lots of duplicates to be displayed in the ComboBox and that's not a good idea for an actual app, but the link above shows that you can still use a ComboBox with current versions of the JS API.

View solution in original post

0 Kudos
2 Replies
derekswingley1
Frequent Contributor
Yes, it still works. One of the Dojo changes that happened (I don't recall exactly when it happened) is that you set the store for a dijit using .set("store", store) instead of .store = store.

Here's a version of the page from the blog post that uses 3.2:  http://jsfiddle.net/4yghv/

The key line of code is:
dijit.byId("mySelect").set("store", store);


I also modified the code to use OBJECTID as the store's identiifer. This causes lots of duplicates to be displayed in the ComboBox and that's not a good idea for an actual app, but the link above shows that you can still use a ComboBox with current versions of the JS API.
0 Kudos
SunilPalkar
Occasional Contributor
Thanks a lot for your information...you are hero !!! 🙂

thanks..
0 Kudos