PDA

View Full Version : [FNR] Unbuffered TreeGrid Render Bug



cschofld
27 Aug 2010, 10:08 AM
A TreeGrid with an Unbuffered View can lose rendered values.

GXT - 2.1.1, 2.2.0 RC1
GWT - 2.0.3, 2.0.4
Host mode / web mode - Both
Browser and version - All
Operating System - Any

Sample code:
Change com.extjs.gxt.samples.client.examples.treegrid.TreeGridExample.java to be unbuffered.

...
final TreeGrid<ModelData> tree = new TreeGrid<ModelData>(store, cm);
// insert following line
tree.getTreeView().setBufferEnabled(false);
tree.setBorders(true);
...
To verify the issue:


Run the example (Basic TreeGrid).
Starting at the bottom of the tree expand each node including child nodes.
Scroll to the bottom.

Work Around:
Override the view:

TreeGridView view = new TreeGridView() {
@Override
protected void clean() {
if (grid == null || !grid.isViewReady() || !isBufferEnabled()) {
return;
}
super.clean();
}
};
view.setBufferEnabled(false);
final TreeGrid<ModelData> tree = new TreeGrid<ModelData>(store, cm);
tree.setView(view);
tree.setBorders(true);
...
Buffered
22163
Unbuffered
22165

sven
27 Aug 2010, 10:16 AM
Thanks for reporting. This is fixed in SVN now as of revision 2202. I fixed it directly in BufferView, as it also effects normal grid with BufferView.

Abhishek Sharma
30 Aug 2011, 1:31 AM
Could you please let us know which version of gxt contains this fix for rendering issue.

Regards
Abhi