Declined
Last Updated: 25 Sep 2024 10:37 by ADMIN
Vladimir
Created on: 05 Feb 2024 16:26
Category: UI for Blazor
Type: Bug Report
0
Filter Descriptor contains two "magic" items in context.FilterDescriptor when TelerikMultiSelect component is empty.

I use TelerikMultiSelect as a component for custom filter:

<FilterMenuTemplate>
<TelerikMultiSelect Value="@(AlreadySelectedFilterValues(context.FilterDescriptor))"
OnRead="@OnReadWrapper"
ValueMapper="@ValueMapperWrapper"
TItem="@FilterItemDto"
TValue="@TFilterValue"
ValueField="@nameof(FilterItemDto.Id)"
TextField="@nameof(FilterItemDto.Name)"
AutoClose="true"
Filterable="true"
ClearButton="true"
DebounceDelay="500"
OnChange="@((object newValue) => OnMenuFilterChange(newValue, context))"/>
</FilterMenuTemplate>

Trying to render already selected filters gives two "magic" items in context.FilterDescriptor in AlreadySelectedFilterValues:

These items appear only if TelerikMultiSelect is empty. If I select some from MultySelect these two items disappear and everything works as expected.

GridState has an empty list of FilterDescriptos.
AggregatedAccountNames - string? column.
TFilterValues can be int, int? or string, no matter, the same behavior.
TFilterItemDto - class with int? Id and and string Name fields.

As expected value I expect to have empty FilterDescriptos if nothing was selected.

2 comments
ADMIN
Dimo
Posted on: 25 Sep 2024 10:37

Hi Vladimir,

We are closing this public item due to lack of enough information and inactivity. If we receive the requested details, we can reopen the request.

Regards,
Dimo
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.

ADMIN
Nadezhda Tacheva
Posted on: 12 Feb 2024 12:18

Hi Vladimir,

Can you please confirm if you are referring to the ExpressionBuilderOptions field?

In order to evaluate the issue, please provide an isolated runnable sample that reproduces the described behavior. Please share details on what problem this introduces and list the exact steps to perform, so I can replicate it on my end.

Thank you in advance for your cooperation!

Regards,
Nadezhda Tacheva
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!