|
|
|
@ -14978,12 +14978,15 @@ BI.GridView = BI.inherit(BI.Widget, {
|
|
|
|
|
if (items && items !== this.options.items) { |
|
|
|
|
this.options.items = items; |
|
|
|
|
} |
|
|
|
|
if (o.items.length > 0) { |
|
|
|
|
if (BI.isNumber(o.columnCount)) { |
|
|
|
|
this.columnCount = o.columnCount; |
|
|
|
|
} else if (o.items.length > 0) { |
|
|
|
|
this.columnCount = o.items[0].length; |
|
|
|
|
this.rowCount = o.items.length; |
|
|
|
|
} |
|
|
|
|
if (BI.isNumber(o.rowCount)) { |
|
|
|
|
this.rowCount = o.rowCount; |
|
|
|
|
} else { |
|
|
|
|
this.rowCount = 0; |
|
|
|
|
this.columnCount = 0; |
|
|
|
|
this.rowCount = o.items.length; |
|
|
|
|
} |
|
|
|
|
this.container.setWidth(this.columnCount * o.estimatedColumnSize); |
|
|
|
|
this.container.setHeight(this.rowCount * o.estimatedRowSize); |
|
|
|
@ -15022,6 +15025,14 @@ BI.GridView = BI.inherit(BI.Widget, {
|
|
|
|
|
this.element.scrollTop(this.options.scrollTop); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setColumnCount: function (columnCount) { |
|
|
|
|
this.options.columnCount = columnCount |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setRowCount: function (rowCount) { |
|
|
|
|
this.options.rowCount = rowCount |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setOverflowX: function (b) { |
|
|
|
|
var self = this; |
|
|
|
|
if (this.options.overflowX !== !!b) { |
|
|
|
@ -31304,6 +31315,11 @@ BI.GridTable = BI.inherit(BI.Widget, {
|
|
|
|
|
this.bottomRightGrid.setEstimatedColumnSize((o.columnSize.length - freezeColLength) > 0 ? (totalRightColumnSize / (o.columnSize.length - freezeColLength)) : 0); |
|
|
|
|
this.bottomRightGrid.setEstimatedRowSize(o.rowSize); |
|
|
|
|
|
|
|
|
|
this.topLeftGrid.setColumnCount(freezeColLength); |
|
|
|
|
this.topRightGrid.setColumnCount(o.columnSize.length - freezeColLength); |
|
|
|
|
this.bottomLeftGrid.setColumnCount(freezeColLength); |
|
|
|
|
this.bottomRightGrid.setColumnCount(o.columnSize.length - freezeColLength); |
|
|
|
|
|
|
|
|
|
var items = this.contextLayout.attr("items"); |
|
|
|
|
items[1].left = regionSize; |
|
|
|
|
items[2].top = this._getFreezeHeaderHeight(); |
|
|
|
|