Unplanned
Last Updated: 10 Apr 2025 07:59 by ADMIN
Svitlana
Created on: 03 Apr 2025 08:00
Category: TreeList
Type: Feature Request
0
Treelist SelectAll Checkbox to behave the same as selectAll in Grid [paging enabled][bad UX]

Hi,

We've noticed a significant difference in how the "Select All" checkbox functions in the Grid and TreeList when paging is enabled.

Our application uses both components, and users expect them to behave consistently. However, we’ve identified several issues:

1. Inconsistent User Expectations

  • In the Grid, "Select All" applies only to the current page.

  • In the TreeList, "Select All" applies to all pages, including hidden rows.

  • This inconsistency can confuse users who switch between these components, leading to unexpected behavior and frustration.

2. Confusing Bulk Actions

  • In the Grid, users understand that selections are limited to the visible page.

  • In the TreeList, users might unknowingly select thousands of records, potentially causing unintended bulk updates or performance issues.

3. Risk of Data Loss or Errors

  • Users assuming the TreeList behaves like the Grid might:

    • Select all rows, perform an action (e.g., delete or update), and unintentionally affect all pages instead of just the current one.

    • This can lead to accidental data loss or incorrect modifications.

We need a consistent approach to "Select All" behavior across both components to prevent confusion, errors, and performance issues.

Expected behavior

If "Select All" is checked, it should:

  • Select all visible rows on the current page.
  • Select all children of selected parents, even if those children are on other pages.
  • Maintain selection when navigating to another page.

 

If it should be submitted as a bug, please let me know.

1 comment
ADMIN
Zornitsa
Posted on: 10 Apr 2025 07:59

Hi Svitlana,

Thank you for submitting this feature request.

Indeed, the current behavior of the TreeList component is by design and it is expected that the built-in Select All checkbox selects all items on all available pages because the selection is performed on all items that are currently loaded on the client. Regarding the checkbox selection behavior of the Grid component, by default, the Select All checkbox selects the items on the current page, however, this selection is not persisted when navigating through the pages:

The persisting of the selection in the Grid can currently be done by explicitly configuring the component to do so with the help of the kendoGridSelectBy directive:

In this line of thought, the only exception in unifying the described differences in the behaviors of the components would be the persisting of the selection through pages since this is currently explicitly done in the Grid as well, which means that the TreeList should also be configured that way in order to keep the components checkbox selection behaviors unified. 

With the above being said, unifying the checkbox selection behavior of the Grid and TreeList component (keeping in mind the above-mentioned exception) sounds like a valuable enhancement, so we will track the demand for it in the current feature request and will consider providing it in the future based on the interest.

Regards,
Zornitsa
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!