Completed
Last Updated: 05 Aug 2024 13:31 by ADMIN
Release 6.1.0
Matthijs
Created on: 25 Apr 2023 14:38
Category: DropDownList
Type: Bug Report
5
In dropdown list, group name does not change when filtering

Steps to reproduce:

  1. Open the Edit in Telerik REPL link from the demo page for DropDownList - Grouping.
  2. Add Filterable="true" to TelerikDropDownList.
  3. Run.
  4. Open the dropdown.
  5. Type in for instance the last item of the list "Röd Kaviar", that belongs to the category "Seafood".

Expected: the group name should change to "Seafood".

Actual: the group name is still "Beverages".

4 comments
Matthijs
Posted on: 04 Jun 2024 13:17

Hello,

I am really glad that the DropDownTree component may be available in a few months, and I will definitely use it as soon as it is available. However, I still need to mitigate the problem I have in the meantime. I downloaded the source code of Telerik UI for Blazor 6.0.2 and the following changes in GroupHeaderItem.razor.cs seem to fix the issue:

    [HideFromApiRef]
    public partial class GroupHeaderItem : GroupItemBase, IDisposable
    {
        private readonly List<string> ObservableParameters = new List<string>()
        {
            nameof(Groups)
        };

        private bool _hasParameterChanged;

        ...

        public override async Task SetParametersAsync(ParameterView parameters)
        {
            _hasParameterChanged = parameters.HasAnyParameterChanged(this, ObservableParameters);

            await base.SetParametersAsync(parameters);
        }

        protected override void OnParametersSet()
        {
            if (_hasParameterChanged)
            {
                Group = Groups?.FirstOrDefault();
            }

            base.OnParametersSet();
        }

        ...

        [JSInvokable]
        [HideFromApiRef]
        public void CurrentGroupChanged(int index)
        {
            var restrictedIndex = index.Restrict(0, Groups.Count() - 1);

            ...

        }
    }

If the fix is indeed as simple as that, then please consider including it in one of the upcoming releases.
ADMIN
Svetoslav Dimitrov
Posted on: 24 Apr 2024 14:27

Hello Matthijs,

We use the Votes in the public item to track how many of our clients are affected by a bug. When an item has a lot of Votes it will be with the highest priority in our bug backlog. We do this to mainstream our efforts and provide bug fixes and new features that will have the highest impact on our client base. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Matthijs
Posted on: 18 Apr 2024 10:03

Hi,

I was hoping this problem would be resolved quickly as it does not seem that difficult to fix. In the meantime, we released our product with this component last week, and our customers are already complaining. Since the incorrect category is displayed, our users believe the search feature does not work at all and instead of using it they believe they have to scroll through our very long list of options and they are very annoyed.

If the fix is not that difficult, please prioritize this.

Thank you.

ADMIN
Svetoslav Dimitrov
Posted on: 02 May 2023 11:19

Hello Matthijs,

Thank you for reporting that to us! I have awarded your account with Telerik Points as a small token of our appreciation. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!