Opened 11 years ago

Closed 11 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)

dataStoreTest.html (1.5 KB) - added by burnsmicro 11 years ago.
Test file showing how to update a FilteringSelect? drop-list

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by burnsmicro

Attachment: dataStoreTest.html added

Test file showing how to update a FilteringSelect? drop-list

comment:1 Changed 11 years ago by bill

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 11 years ago by bill

Resolution: worksforme
Status: newclosed

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.

Note: See TracTickets for help on using tickets.