Issue (with functioning test case) against the latest 5.0 and 4.1.
Reproduction steps:
1. Load the test case; see 300 columns. Probably Important: they should force the window to scroll.
2. Set a filter value in the first column.
3. Scroll all the way to the right. Set a filter value in the last column.
4. Right-click on the column headers, choose "clear filters."
5. Note that the filter you set in (3) has been cleared.
6. Scroll all the way to the left. Note that the filter you set in (2) has NOT been cleared.
1. the *complete* SmartGWT or SmartClient version
The imprecise version, is whatever your latest download of SmartGWT 5.0 was on 2014.12.11, 10am SGT.
The debug screen keeps failing to load for me with a 404 on Log.html, so the precise version isn't available to me.
It also fails on the latest version of 4.1, and on the version of 4.1 I currently use in my application.
2. browser(s) and version(s) involved
IE 11/64bit, Chrome (latest), Firefox (latest) as of today.
6. sample code if applicable
Test case is as as follows:
Reproduction steps:
1. Load the test case; see 300 columns. Probably Important: they should force the window to scroll.
2. Set a filter value in the first column.
3. Scroll all the way to the right. Set a filter value in the last column.
4. Right-click on the column headers, choose "clear filters."
5. Note that the filter you set in (3) has been cleared.
6. Scroll all the way to the left. Note that the filter you set in (2) has NOT been cleared.
1. the *complete* SmartGWT or SmartClient version
The imprecise version, is whatever your latest download of SmartGWT 5.0 was on 2014.12.11, 10am SGT.
The debug screen keeps failing to load for me with a 404 on Log.html, so the precise version isn't available to me.
It also fails on the latest version of 4.1, and on the version of 4.1 I currently use in my application.
2. browser(s) and version(s) involved
IE 11/64bit, Chrome (latest), Firefox (latest) as of today.
6. sample code if applicable
Test case is as as follows:
Code:
public void onModuleLoad() {
final ListGrid lg1 = new ListGrid()
{
@Override
protected MenuItem[] getHeaderContextMenuItems(final Integer fieldNum)
{
MenuItem clearFilters = new MenuItem("Clear filters");
clearFilters.setEnabled(true);
clearFilters.addClickHandler(new ClickHandler() {
@Override
public void onClick(MenuItemClickEvent event) {
clearCriteria();
invalidateCache();
}
});
return new MenuItem[]{clearFilters};
}
};
lg1.setTop(30);
lg1.setLeft(0);
lg1.setHeight(300);
lg1.setWidth100();
lg1.setShowFilterEditor(true);
lg1.setBackgroundColor("white");
List<ListGridField> fieldList = new ArrayList<ListGridField>();
for ( int i = 0; i < 300; i++ )
{
fieldList.add(new ListGridField("name" + i, "Name" + i));
}
lg1.setFields(fieldList.toArray(new ListGridField[0]));
lg1.draw();
}