Opened 12 years ago
Closed 12 years ago
#9324 closed enhancement (worksforme)
Documentation of FilteringSelect - Updating data store
Reported by: | burnsmicro | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Documentation | Version: | 1.3.0 |
Keywords: | updating FilteringSelect drop-list, refreshing FilteringSelect drop-list, updating FilteringSelect data store. | Cc: | |
Blocked By: | Blocking: |
Description
The addition of a paragraph in http://docs.dojocampus.org/dijit/form/FilteringSelect on how to update the data store on a FilteringSelect? widget would save hours of searching.
May I suggest adding something along the following lines:
Updating the FilteringSelect? Widget's Data Store
It is not enough to update the data store used by a FilteringSelect? widget (link to bookmark in http://docs.dojocampus.org/dojo/data/ItemFileReadStore). The data store must be explicitly reattached to the FilteringSelect? widget:
selector.store = dataStore;
A test file is attached. Clicking the "Update" button changes items in the dataStore and this is reflected in the FilteringSelect? widget's drop-list
Attachments (1)
Change History (3)
Changed 12 years ago by
Attachment: | dataStoreTest.html added |
---|
comment:1 Changed 12 years ago by
Hmm, you are saying that FilteringSelect doesn't see the updates to the data store unless you have this line below (where selector is the FilteringSelect)?
selector.store = dataStore;
I don't see why that would happen. What are the steps to reproduce the problem you saw when that line isn't present?
comment:2 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Thanks for the test case.
However, I commented out that line:
selector.store = dataStore;
from your test case and it still works fine for me.
Test file showing how to update a FilteringSelect? drop-list