Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

I'm trying to get my search text to highlight in the Autocomplete dropdown.   So when I type "got" I want to see all of the "got"s to be highlighted (bold).   But nothing happens.

Screenshot:

Empty



On my page, I'm using the Query object to call a remote API to help with the autocomplete.  The number of artists is >300K so loading all of the data would be painful.   This mostly works.   Every time the user types, fresh matches are displayed in the autocomplete dropdown.   However the dropdown results are not highlighted.   The page refreshes on the ValueChange event.   But no highlights are added. :(

My razor page code is attached (it didn't paste neatly here)

The place where I tried to use "highlight" is:

<SfAutoComplete @ref="autoObj" TValue="string" TItem="ArtistSearch" Placeholder="Select a customer" MinLength=2 Query="@Query" PopupWidth="200%" Width="50%" Highlight="true">



Any ideas?   I tried quoting and unquoting "true".   I also tried to code manually replacing the text in the Item Template but I don't know how to inject "raw" html (i.e. <b></b> tags) so my inject bold tags were escaped and didn't work.

Thanks,
Mike