enterprise-ng icon indicating copy to clipboard operation
enterprise-ng copied to clipboard

Datagrid: Filter problems

Open Thomas-Sparber opened this issue 4 years ago • 4 comments

Describe the bug

Actually there are two problems with filters in DataGrid:

  • If a user manually applies a filter in a DataGrid I have no possibility to get the filtered rows. e.g. Full dataset is 100 lines, user applies filter so that only 2 lines are visible. There is no possibility to get those two lines
  • Multiselect is enabled for DataGrid. If a user selects one line, then manually applies a filter which EXCLUDES the previously selected line. Then again selects a line, the first selected line still appears in dataGrid.selectedRows() although it is not visible in the datagrid (anymore)

Thanks for your help!

Thomas-Sparber avatar Nov 02 '21 13:11 Thomas-Sparber

Hi. For

  1. you could look at the attached array and if the property _isFilteredOut is set its filtered else it isn't. But i think that a new function like getFIlteredRows() could be a good addition
  2. Im not sure what you mean? How can i reproduce that on our examples?

tmcconechy avatar Nov 02 '21 14:11 tmcconechy

Hi Tim,

thanks a lot for your answer! _isFilteredOut is totally what I was looking for - thank you! Yes, I agreen getFilteredRows would be a great feature. Problem 2 is fixed with _isFilteredOut too, thanks!

Thomas-Sparber avatar Nov 08 '21 07:11 Thomas-Sparber

Could also make getUnfilteredRows() ...

tmcconechy avatar Nov 11 '21 14:11 tmcconechy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.

github-actions[bot] avatar May 06 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 20 '24 01:05 github-actions[bot]