简体   繁体   中英

How can I update the contents of a ComboBox embedded in a GridX

I am in the process of altering an existing GridX table to add a new column which contains a drop down, the contents of which will be different for each row.

I have added the dropdown as a combobox by setting the cell's structure as

widgetsInCell: true,

Which will make the combobox's cell a decorator.

My issue now is that the update function operates by getting the gridx's and setting a new store.That works for text data but I can't find a way of creating a store which will populate the combobox.

Do I need to integrate somehow with the cell's setCellValue hook?

Thanks

You can use dijit/form/FilteringSelect dojo FilteringSelect

If all your rows data from same store, use query to filtering data.(eg query: {state: /.*/})

Otherwise use "dojo/store/JsonRest" get data from server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM