dijit.form.filteringselect dynamically change options

前端 未结 3 1758
旧巷少年郎
旧巷少年郎 2021-01-13 22:18

I have a dijit.form.FilteringSelect component and I want to change the options dynamically. But I get the store from the dijit.form.FilteringSelectwith its stor

3条回答
  •  伪装坚强ぢ
    2021-01-13 22:48

    the properties 'urlPreventCache:true, clearOnClose:true' will force the store to be reloaded

    and then, on event/callback/handler where you need/want to reset the values just do this

    function func-name() {
        clientStore.url = "../json/GetClients?param=";
        clientStore.close();
    }
    

提交回复
热议问题