Search code examples
widgetdojo

Dojo/HTML equivalent for list box control


We are porting our MFC based client to Dojo. Is there any widget similar to listbox control. At present I am using DataGrid, but that seems heavy and overkill for our purposes. Alternatively what is best widget to replace listbox.

Update: I have already looked at dijit.form.multiselect, and I dont think that meets my requirement. MFC Listbox typically looks like this. I dont see (or rather dont know) how to replicate this with multiselect. It is possible that DataGrid is best fit for the control.

enter image description here


Solution

  • If you use dojo 1.7, take a look at the new DGrid.

    For an example looking like yours, go to the tests page and pickup the Selector.html example.