This should be a quick question: When filtering the store from which a nested list gets its data, should the nested list update automatically? I can't see any kind of refresh, or reload function.
I'm simply filtering some JSON with the code below. I can see that the data is being filtered, but the nested list doesn't alter.
Code:
AllCoursesButton: {
tap: function(button){
if(button.getIconCls()=='docs2')
{
button.setIconCls('doc');
button.setText('Mobile Courses');
var ActiveStore=this.getCatalogList().getStore();
//debugger;
ActiveStore.filter('nametxt', 'Mobile Courses');
console.log(ActiveStore.getData().length);
//ActiveStore.load();
}
else
{
button.setIconCls('docs2');
button.setText('All Courses');
var ActiveStore=this.getCatalogList().getStore();
ActiveStore.clearFilter();
console.log(ActiveStore.getData().length);
//ActiveStore.load();
}
}
}