Strange behavior of the datagrid

Today we had an incident due to customer behavior with the datagrid, which was as follows:

We have a list of orders that the user filters by supplier or shipping agency, selects, and generates the dropshipping order with the chosen quantity.
Today, the user applied the filters and clicked “select all.” It was thought that with filters applied to the datagrid, only the filtered results were selected, not the entire list. As a result, the user selected hundreds of orders and submitted them all… even though the filter only showed 4 orders.

Why would this happen? Is it a datagrid error? Do you need to correct this behavior?

We’re using the datagrid - selectedRows variable to send orders only to the different agencies.

Finally, we think the behavior should be as follows:

If the datagrid contains a filter and the user sees 4 items in the results, clicking “select all” should only select the 4 items from the filtered results.

Here’s an example: the following has a filter that displays 6 items, and when “select all,” only 6 should be selected, but instead, it returns 245…

image

regards..

Hi @Guillenius :waving_hand:

Do I understand this correctly:

  • the user clicked “selected all”
  • but only 4 items appeared as selected with the blue checkboxes
  • yet all items were in fact selected and submitted
  • in other words, there would be a UI issue related to filters that mislead the user into thinking they had only 4 items selected.

Is that right?

If so, were you able to reproduce the issue on your side?

Hi Joyce, thanks for ypu replay.

Here

  1. The user has applied a filter.
  2. The datagrip displays 4 items.
  3. The user clicks “Select All” in the first checkbox of the datagrip, thinking it will only select the filtered items.
  4. The user submits.
  5. The datagrip, in the background, has the entire list selected in the variable: all 246 items, not just the 4 items from the active filter.

regards.

Do you have the datagrid’s ‘Select All Behavior’ configured for Filtered?