New to Telerik UI for .NET MAUIStart a free 30-day trial

Interface used by RadAutoComplete for providing custom formatting for the selected item that will either be visualized as plain text or as token.

Definition

Namespace:Telerik.Maui.Controls.AutoComplete

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public interface IDisplayTextFormatter

Derived Classes: DisplayTextFormatter

Methods

Called by RadAutoComplete when suggestion is selected. Using it the format of the text visualized in the entry could be formatted when AutoCompleteDisplayMode is Plain. If the AutoCompleteDisplayMode is Token you can format the text visualized in the Token itself.

C#
string FormatItem(object item)
Parameters:itemobject

The selected suggestion.

Returns:

string

The text that will be visualized in the entry if the AutoCompleteDisplayMode is Plain and if the mode is Token this will be text visualized in it.

In this article
DefinitionMethodsFormatItem(object)
Not finding the help you need?
Contact Support