multiselect box in dojo
I have two multiselect boxes on page in which one multiselect box is populated onload of a page and on the basis of selection in first multibox corresponding values will populated in next multiselect box. Any idea how we can achie开发者_开发问答ve this. Can we use dijit.form.FilteringSelect to get the relevant data from a json file in to a multiselect box?.
dijit.form.MultiSelect
has a method addSelected
that will help you do this.
Have a look at the test page for the MultiSelect widget for an example close to what you were looking for: http://download.dojotoolkit.org/release-1.6.1/dojo-release-1.6.1/dijit/tests/form/test_MultiSelect.html
精彩评论