Skip to content

Using the search filter of a data grid clears all selected rows #151

@kristyknapp

Description

@kristyknapp

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request

Current behavior

We are using an amexio-datagrid that has column with a checkbox in it to select a row. When I select a row in the data grid and then use the search filter, any rows that were selected previously are now cleared. This same thing happens with an amexio-listbox.

Expected behavior

If I select a row in the data grid and then use the search filter, the row should still be selected.

Minimal reproduction of the problem with instructions

For bug reports please provide the STEPS TO REPRODUCE and if possible a MINIMAL DEMO of the problem via
https://plnkr.co or similar (you can use Our Amexio Plunker as a starting point: http://plnkr.co/edit/M9AeGH?p=info)

  1. Select a row in the datagrid

Screen Shot 2022-05-27 at 2 13 01 PM

  1. Use one of the search filters (doesn't matter whether the search includes the selected row or not, but if it does the row will no longer be selected)

Screen Shot 2022-05-27 at 2 13 59 PM

  1. Clear the search and any previously selected rows are no longer selected.

Screen Shot 2022-05-27 at 2 14 10 PM

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z

I was able to recreate this issue on the demo site with the amexio-listbox here: https://api.amexio.org/api/v5.20/index.html#/data/listbox-demo

Browser:
- [x ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: 12.0.0  
- Platform:  Mac 

Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions