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

Single Line Entries

The Single Line Entries feature allows displaying the entries inline or wrapped in multiple lines. This functionality is available as of R1 2023 SP1 and can be controlled by setting the SingleLineEntries property to Disabled (Figure 1) or Enabled (Figure 2).

Figure 1: SingleLineEntries="Disabled" (default)

Single Line Entries - Disabled

Figure 2: SingleLineEntries="Enabled"

Single Line Entries - Enabled

Controlling the SingleLineEntries

This property can be set either in the Markup or in the CodeBehind

Markup Example

ASP.NET
<telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="RadAutoCompleteBox1" runat="server" SingleLineEntries="Enabled">
</telerik:RadAutoCompleteBox>

CodeBehind Example

C#
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        RadAutoCompleteBox1.SingleLineEntries = RadAutoCompleteSingleLineEntries.Enabled;
    }
}