Need More Info
Last Updated: 18 Mar 2025 12:16 by ADMIN
ReverseBLT
Created on: 12 Mar 2025 13:39
Category: UI for Blazor
Type: Feature Request
0
Autocomplete to have an OnSelect event
I want to be able to use Autocomplete's for strings separated by commas, semicolons, etc. So if a user has a grocery list string and every item is separated by a comma (Apples, Bananas, Cheese, ...) I want them to be able to use the auto complete to quickly find items quicker (think more along the lines of specific brands, quantities, sizes, for every item) and still build out their list of string. 
So the user would have something like: 'Cupcakes (12 count), Mozzarella Cheese - Kraft, ...'
So the autocomplete would filter the string to find the part after the last comma and use that to search, but when the user finds their item and selects it, it needs to append to the string (and add a comma) and not overwrite it. Then continue the cycle.

Attempting to use OnChange does not allow for this to happen. On selection of a dropdown item, it will overwrite the string entirely. 
2 comments
ADMIN
Hristian Stefanov
Posted on: 18 Mar 2025 12:16

Hello,

The AutoComplete component provides a ValueChanged event that seems to align with your requirements. It triggers when an item is selected, giving you access to both the previous string and the newly selected value. This allows you to easily append the new value to the existing string. I recommend reviewing this event to determine if it will help address your scenario.

    Regards,
    Hristian Stefanov
    Progress Telerik

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

    ReverseBLT
    Posted on: 12 Mar 2025 13:50
    I thought I could edit this before being reviewed but another use case (that's again vague for privacy) is currently our users can send emails through our system and for our recipients list, each email is separated by a semicolon. It would be great for our users to be able type and lookup an email/user and quickly add it to the list.