- var store = this.stores[lvl];
-
-
- if(store.getCount() < 1){
- return;
- }
- var value = this.getValue();
- var prop = this.hiddenName;
-
- var _this = this;
- store.each(function(r){
- // selected is at this level
- if(r.data[prop] == value){
- var ix = store.getIndexOf(r);
- _this.views[lvl].select(ix, false, true); // do not trigger set active..
- _this.loading
- return false;
- }
-
- if (r.data.cn && r.data.cn.length) {
- cstore.loadDataFromChildren(r);
- var cret = _this.findRecordInStore(cstore, prop, value);
- if (cret !== false) {
- var ix = store.getIndexOf(r);
- _this.views[lvl].select(ix, false, false); // will trigger select change..
- return false;
- }
- }
-
- return true;
- });
-
- }