I have been trying to connect to simply connect a datastore (ItemFileReadStore) to a dijit.form.Select widget and have been unable to. If I use the options field to populate it then the widget works fine but when I go to use the store field to populate it the widget appears but its contents are empty. The code that I am trying to use is below:
var readStore = new dojo.data.ItemFileReadStore({
label: "label",
identifier: "value",
//items: nestedSortOptions1
items: [{label : "Lab1", value: "Val1"}]
});
var sel1 = new dijit.form.Select({
id:"sel1",
name: "sel1",
required: true,
style: "width: 170px;",
//options: nestedSortOptions1
store: readStore
},"sel1");
I assumed that you would make this widget "data-enabled" using the store field but I may be mistaken. If anyone can help it would be greatly appreciated. Thanks