I created SelectItem with OptionDataSource. The data are fetched when the component is created, however I'm unable to refetch the data later. I am using my own custom DataSource
I tried using the following code, when I need to refresh the contents of SelectItem (it doesn't work):
It doesn't matter whether I invoke setCacheAllData(true) or not, when I create the DataSource.
I'm using SmartGWT 2.4.
How can I force SelectItem to reload the data from the OptionDataSource?
I tried using the following code, when I need to refresh the contents of SelectItem (it doesn't work):
Code:
dataSource.invalidateCache(); dataSource.fetchData(); selectItem.fetchData();
I'm using SmartGWT 2.4.
How can I force SelectItem to reload the data from the OptionDataSource?
Comment