}
var rec = view.store.getAt(ix[0]);
- //if (!this.isLoading) {
- this.setFromData(rec.data);
- //}
+
+ this.setFromData(rec.data);
var lw = Math.floor(
- ((this.listWidth * this.maxColumns || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')) / this.maxColumns
+ (
+ (this.listWidth * this.maxColumns || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')
+ ) / this.maxColumns
);
this.stores[opts.list+1].loadDataFromChildren( rec );
}
},
+
+
+
+
onDoubleClick : function()
{
this.collapse(); //??
// private
- recordToStores : function(store, prop, value, stack)
+ recordToStack : function(store, prop, value, stack)
{
var cstore = new Roo.data.SimpleStore({
//fields : this.store.reader.meta.fields, // we need array reader.. for
}
if (r.data.cn && r.data.cn.length) {
cstore.loadDataFromChildren( r);
- var cret = _this.recordToStores(cstore, prop, value, stack);
+ var cret = _this.recordToStack(cstore, prop, value, stack);
if (cret !== false) {
record = cret;
srec = r;
{
// if store is not loaded, then we will need to wait for that to happen first.
var stack = [];
- this.findRecordInStore(this.store, this.hiddenName, this.getValue(), stack);
-
+ this.recordToStack(this.store, this.valueField, this.getValue(), stack);
+ for (var i = 0; i < stack.length; i++ ) {
+ this.view[i].select(stack[i].store.indexOf(stack[i]), false, false );
+ }
}