PDA

View Full Version : TreeGridView missing elements



iyeh
13 Mar 2012, 10:19 AM
When I scroll up and down a long list of items in TreeGrid sometimes I see rows that are rendered incomplete. For example the image shows that Edit and Delete anchors are missing on certain rows.


32697

The occurrences don't always happen on the same rows, but it's easily found after I scroll up and down couple times. Seen easily on IE, less on Chrome.

When I disable TreeGridView buffer, setBufferEnabled(false), it seems to help. But what are the side effects for disabling buffer? Is there a better fix?

sven
13 Mar 2012, 12:04 PM
Are you using Widgets on these columns?

iyeh
13 Mar 2012, 12:12 PM
No I am using GridCellRenderer



ColumnConfig col = new ColumnConfig();
col.setWidth(50);
col.setMenuDisabled(true);
col.setSortable(false);
col.setAlignment(HorizontalAlignment.CENTER);
col.setRenderer(new GridCellRenderer<FormItem>() {
public Object render(FormItem model, String property, ColumnData config, int rowIndex, int colIndex,
ListStore<FormItem> store, Grid<FormItem> grid) {
Anchor a = new Anchor("Edit");
a.addClickHandler(newActionClickHandler(AppEvents.Edit, model));
return a;
}
});

sven
13 Mar 2012, 12:14 PM
Yes and you are returning a widget in there. This is a known issue and should already be fixed in SVN

iyeh
13 Mar 2012, 12:25 PM
Ok great. Allow me to ask then in general what does disabling buffer do? and on what condition should I consider disable?

By the way, where can I read about the original bug report? Thanks.

sven
13 Mar 2012, 12:41 PM
http://www.sencha.com/forum/showthread.php?176844-GXT-2.2.4-Bug-on-GridCellRenderer-for-TreeGrid