Loading data from server in nextmatch widget - readonlys is not processed as it is not so easy to handle

This commit is contained in:
Andreas Stöckel
2011-09-09 14:32:55 +00:00
parent 50ad9e4ba0
commit 2290b04102
7 changed files with 211 additions and 32 deletions

View File

@ -91,7 +91,7 @@ var et2_dataview_grid = Class.extend(et2_dataview_IViewRange, {
// Create the partition tree object which is used to organize the tree
// items.
partitionTree = this._partitionTree = new et2_dataview_partitionTree(this._dataProvider,
this._partitionTree = new et2_dataview_partitionTree(this._dataProvider,
this._rowProvider, this._avgHeight, this.innerTbody);
// Setup the "rebuild" timer - it rebuilds the complete partition tree
@ -117,6 +117,16 @@ var et2_dataview_grid = Class.extend(et2_dataview_IViewRange, {
this._partitionTree.free();
},
clear: function() {
// Free the partition tree and recreate it
this._partitionTree.free();
this._partitionTree = new et2_dataview_partitionTree(this._dataProvider,
this._rowProvider, this._avgHeight, this.innerTbody);
// Set the viewrange again
this.setViewRange(this._currentRange);
},
/**
* The setViewRange function updates the range in which columns are shown.
*/
@ -137,8 +147,6 @@ var et2_dataview_grid = Class.extend(et2_dataview_IViewRange, {
}
}
// Deactivated the code below for testing purposes
// Calculate the range of the actually shown elements
var displayTop = _range.top;
var displayBottom = _range.bottom;