Login Register

data store

Custom Sorting in a Data Store

I've found from looking through the forums that the following code allows you to setup a custom comparator to a field within a data store.

test_store.comparatorMap = {};
   test_store.comparatorMap['fieldName'] = sorterFunction;

   function sorterFunction( fieldNameData1, fieldNameData2 )
   {
      console.info( fieldNameData1, fieldNameData2 );
   };

Clearing the data store for a FilteringSelect (or ComboBox)

What is the proper way to clear (empty) the data store of a FilteringSelect widget? I tried both the following without success:

select.store = null;

or

select.store = new dojo.data.ItemFileReadStore();

So what's the right method?

Does FisheyeList support a data store?

I'd like to use the FisheyeList with a datastore. Is there a way to do that in version 1.1.0?

Thanks,
Eric

How to reload a data store (ItemFileWriteStore) and refresh display of multiple dijits

I need a way to fully refresh the data in ItemFileWriteStore
and have it re-displayed in multiple dijits.

I have a data store, using dojox.data.AndOrWriteStore
(which, for the purposes here, I think is the same as dojo.data.ItemFileWriteStore
I populate that store with a url, and display different aspects of the data
using a tree, several grids, and a filterSelect. All works fine.

Mostly, the data in the store does not change. On rare occasion, however,
certain actions will cause the data on the server to change, and in those
cases I want to cause the datastore to refresh, and to have each of the dijits
refresh it's display of that data.

Syndicate content