| Using Filterator and RowHideShowLayer together [message #1196452] |
Tue, 19 November 2013 07:26  |
Eclipse User |
|
|
|
Hello experts,
I am using NatTable since i have to render a large data set.
I need to support a couple of features which seem to be mutually conflicting from implementation perspective.
1. I have to provide a text box which should help users filter rows in the Nattable. I successfully implmented this by creating a "Filterator".
2. I also need to provide a checkbox which will be responsible for hiding/showing some rows from the table. I have implemented this with the help of RowHideShowLayer. Whenever I need to hide rows, I loop through the entire data set and identify the positions of row that need to be hidden and provide these to the "hideRowPositions" method the RowHideShowLayer. This works fine except in case when i sort the data when rows are hidden. I am not sure of the appropriate way to tackle this but I plan to handle this by adding an event listener that will hide rows based on the resultant positions.
Both these features work as expected in isolation. However when clubbed, the latter works as expected (with the glitch mentioned above) but the former doesn't. In the first case whenever I type anything in the filter text box all rows are hidden instead of those not matching the text in the filter textbox.
If I stop hiding rows using "RowHideShowLayer" this issue disappers.
I don't have any clue how to handle this.
Please help.
Thanks and regards,
Pradyumna
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03998 seconds