Interface
IDisplayTextFormatter

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:

cs-api-definition
public interface IDisplayTextFormatter

Methods

FormatItem(object)

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.

Declaration

cs-api-definition
string FormatItem(object item)

Parameters

item

object

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