Using Smart GWT 3.0 nightlies. Power Version.
I ran into this UI drawing/refreshing bug while working on our project.
I was, however, able to recreate the bug using the Smart GWT client showcase example: http://www.smartclient.com/smartgwt/showcase/#grid_adaptive_filter_featured_category
Steps to reproduce:
1) ListGrid with:
setShowFilterEditor(true);
setFilterOnKeypress(true);
setFetchDelay(500);
2) Load all the data in the ListGrid. If the ListGrid is using paging, will need to scroll through the entire grid to make sure all data/records are loaded.
3) Use the mouse to select the first record in the grid. Now scroll to the last record and shift-click to select all the records in the grid. If an error says 'can't select all data or too much data' it means not all the data/rows have been loaded so need to re-scroll through the grid slower to make sure all the data gets loaded. If the grid doesn't use paging, should be able to select all rows with no error.
4) In the filter editor, enter a value that will filter some of the data (in the showcase example, enter 'pens' in the Item category).
5) Now select a **single** record returned in the filter results (in the showcase example, select the first visible record).
6) Now delete the value in the filter editor ('pens' in the showcase example).
7) Notice how all the data/rows re-appear but the previously hidden rows are still showing a selected 'style' while the rows that appeared during the filter that WERE NOT selected are unselected and the single row selected during the filter IS selected.
So the UI is showing rows that are selected, but the actual underlying ListGrid only says 1 row is selected.
I believe what needs to happen is that when a record is selected in a ListGrid during a Filter, all ListGrid records' styles need to be refreshed/updated even if they are not visible so that when they 'reappear' after the filter is cleared they have the unselected, default row styling.
Is there a known workaround to this issue?
I ran into this UI drawing/refreshing bug while working on our project.
I was, however, able to recreate the bug using the Smart GWT client showcase example: http://www.smartclient.com/smartgwt/showcase/#grid_adaptive_filter_featured_category
Steps to reproduce:
1) ListGrid with:
setShowFilterEditor(true);
setFilterOnKeypress(true);
setFetchDelay(500);
2) Load all the data in the ListGrid. If the ListGrid is using paging, will need to scroll through the entire grid to make sure all data/records are loaded.
3) Use the mouse to select the first record in the grid. Now scroll to the last record and shift-click to select all the records in the grid. If an error says 'can't select all data or too much data' it means not all the data/rows have been loaded so need to re-scroll through the grid slower to make sure all the data gets loaded. If the grid doesn't use paging, should be able to select all rows with no error.
4) In the filter editor, enter a value that will filter some of the data (in the showcase example, enter 'pens' in the Item category).
5) Now select a **single** record returned in the filter results (in the showcase example, select the first visible record).
6) Now delete the value in the filter editor ('pens' in the showcase example).
7) Notice how all the data/rows re-appear but the previously hidden rows are still showing a selected 'style' while the rows that appeared during the filter that WERE NOT selected are unselected and the single row selected during the filter IS selected.
So the UI is showing rows that are selected, but the actual underlying ListGrid only says 1 row is selected.
I believe what needs to happen is that when a record is selected in a ListGrid during a Filter, all ListGrid records' styles need to be refreshed/updated even if they are not visible so that when they 'reappear' after the filter is cleared they have the unselected, default row styling.
Is there a known workaround to this issue?
Comment