ALPER KOPUZ
2010-03-12 10:06:17 UTC
Hello
I am using dojo.require("dojo.data.util.sorter") , fetchProperties inside
filteringSelect to sort items. But unfortunately, I am not able to sort
them. Could you please observe following code and let me know what I am
doing wrong?
Cheers
this.theRSSCountryId = "widgetCatalog-Container_comboRSSCountry";
var that = this;
new dijit.form.FilteringSelect({
id:that.theRSSCountryId,
store: bStore,
searchAttr:"name",
descending: true,
onKeyDown:this.disableKey,
fetchProperties: {sort:{attribute:"name", descending:true}},
//this is where I am trying to sort
onChange:function(val) {
}
}, this.comboRSSCountry);
bStore.newItem({countryCode:"-1", name: "Hepsi"});
I am using dojo.require("dojo.data.util.sorter") , fetchProperties inside
filteringSelect to sort items. But unfortunately, I am not able to sort
them. Could you please observe following code and let me know what I am
doing wrong?
Cheers
this.theRSSCountryId = "widgetCatalog-Container_comboRSSCountry";
var that = this;
new dijit.form.FilteringSelect({
id:that.theRSSCountryId,
store: bStore,
searchAttr:"name",
descending: true,
onKeyDown:this.disableKey,
fetchProperties: {sort:{attribute:"name", descending:true}},
//this is where I am trying to sort
onChange:function(val) {
}
}, this.comboRSSCountry);
bStore.newItem({countryCode:"-1", name: "Hepsi"});