|
|
@ -2850,10 +2850,16 @@ BI.CollectionView = BI.inherit(BI.Widget, { |
|
|
|
this.renderRange = {}; |
|
|
|
this.renderRange = {}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_clearChildren: function () { |
|
|
|
|
|
|
|
this.container._children = {}; |
|
|
|
|
|
|
|
this.container.attr("items", []); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
restore: function () { |
|
|
|
restore: function () { |
|
|
|
BI.each(this.renderedCells, function (i, cell) { |
|
|
|
BI.each(this.renderedCells, function (i, cell) { |
|
|
|
cell.el.destroy(); |
|
|
|
cell.el._destroy(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this._clearChildren(); |
|
|
|
this.renderedCells = []; |
|
|
|
this.renderedCells = []; |
|
|
|
this.renderedKeys = []; |
|
|
|
this.renderedKeys = []; |
|
|
|
this.renderRange = {}; |
|
|
|
this.renderRange = {}; |
|
|
@ -2864,6 +2870,7 @@ BI.CollectionView = BI.inherit(BI.Widget, { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
this.options.items = items; |
|
|
|
this.options.items = items; |
|
|
|
this._calculateSizeAndPositionData(); |
|
|
|
this._calculateSizeAndPositionData(); |
|
|
|
|
|
|
|
this.restore(); |
|
|
|
} |
|
|
|
} |
|
|
|
this._populate(); |
|
|
|
this._populate(); |
|
|
|
} |
|
|
|
} |
|
|
@ -14953,10 +14960,16 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
this.renderRange = {}; |
|
|
|
this.renderRange = {}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_clearChildren: function () { |
|
|
|
|
|
|
|
this.container._children = {}; |
|
|
|
|
|
|
|
this.container.attr("items", []); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
restore: function () { |
|
|
|
restore: function () { |
|
|
|
BI.each(this.renderedCells, function (i, cell) { |
|
|
|
BI.each(this.renderedCells, function (i, cell) { |
|
|
|
cell.el.destroy(); |
|
|
|
cell.el._destroy(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this._clearChildren(); |
|
|
|
this.renderedCells = []; |
|
|
|
this.renderedCells = []; |
|
|
|
this.renderedKeys = []; |
|
|
|
this.renderedKeys = []; |
|
|
|
this.renderRange = {}; |
|
|
|
this.renderRange = {}; |
|
|
@ -14966,6 +14979,7 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
if (items && items !== this.options.items) { |
|
|
|
this.options.items = items; |
|
|
|
this.options.items = items; |
|
|
|
|
|
|
|
this.restore(); |
|
|
|
} |
|
|
|
} |
|
|
|
this._populate(); |
|
|
|
this._populate(); |
|
|
|
} |
|
|
|
} |
|
|
|