Unplanned
Last Updated: 02 Oct 2024 12:41 by ADMIN
Peter
Created on: 02 Oct 2024 09:23
Category: DataGrid
Type: Feature Request
1
DataGrid: Provide a way to apply the Empty Template when all records are filtered out by column filter and/or search functionality

Issue description:

When the grid contains, after filtering out ,no rows the "Empty template" is not used/displayed.

Tested on Windows,  with "Telerik_UI_for_dot_NET_Maui_7_1_0_Dev\Examples\ControlsSamples", Example "Empty Template".

Steps to reproduce:

  1. Open example  "Empty Template"
  2. In "Configuration" set "Items source" to "Non-empty collection"
  3. Set filter in "Order Id" to "Is equal to" = 999

Expected behavior:

Display/Use "Empty template" when there are no visible records.

...or to make it more consistent with the current implementation - add new option "ItemsSourceNullOrEmptyOrFilteredOut" to the enum "EmptyContentDisplayMode":


namespace Telerik.Maui.Controls;
//
// Summary:
//     Defines the modes for displaying empty content.
public enum EmptyContentDisplayMode
{
    //
    // Summary:
    //     Displays the empty content view only when the ItemsSource is null.
    ItemsSourceNull,

    //
    // Summary:
    //     Displays the empty content view when ItemsSource is null or when the source is
    //     empty (has zero items).
    ItemsSourceNullOrEmpty,
    
+    //
+    // Summary:
+    //     Displays the empty content view when ItemsSource is null or when the source is
+    //     empty (has zero items) or when all items are filtered out. (either by filter or by search)
+    ItemsSourceNullOrEmptyOrFilteredOut
}    


Best regards,

Peter

1 comment
ADMIN
Yana
Posted on: 02 Oct 2024 12:41

Hi Peter,

Thank you for the detailed information on the use case you came across.

Indeed, currently EmptyTemplate is applied only when the ItemsSource is null or empty - this is not the case when the items are filtered out or after a search operation. We consider this a valid feature, so I updated the feedback item to "Feature Request" type and updated its status to "Unplanned". 

Please follow the feedback item to get notified on status changes.

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.