Unplanned
Last Updated: 24 Oct 2024 14:56 by Ricardo
Ricardo
Created on: 23 Oct 2024 12:24
Category: ComboBox
Type: Feature Request
1
Make FilterValue paramater public readonly

I want to access runtime the value by which the user filters. 

===ADMIN EDIT===

Use the OnRead event handler to access the filter value:

private async Task ReadItems(ComboBoxReadEventArgs args)
{
    if (args.Request.Filters.Count > 0)
    {
        Telerik.DataSource.FilterDescriptor filter = args.Request.Filters[0] as Telerik.DataSource.FilterDescriptor;
        string userInput = filter.Value.ToString();
        ...
    }
    ...
}

1 comment
Ricardo
Posted on: 24 Oct 2024 14:56
Actually I don't follow the "===ADMIN EDIT===" section, my request is to make the FilterValue property inside TelerikSelectBase<> public readonly to be able to access the filtered value easily do build up features like the one described in the REPL below to highlight the searched term in the results:

https://blazorrepl.telerik.com/GSPkFrlH247p0DTa16