Skip to main content
Tab

ASPxListBox.AllowEllipsisInText Property

Specifies if the list box can automatically truncate the item’s text if it doesn’t fit into the item’s width.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool AllowEllipsisInText { get; set; }

Property Value

Type Default Description
Boolean false

true, to automatically truncate text; otherwise, false.

Remarks

Set the AllowEllipsisInText property to true to automatically truncate items texts if they don’t fit into the items widths. To indicate that the text is clipped, the control displays an ellipsis (‘…’).

Note

The AllowEllipsisInText property is in effect if the list box’s width is specified.

The following example illustrates how to use the AllowEllipsisInText property.

<dx:ASPxListBox ID="ASPxListBox1" runat="server" EnableTheming="True" Width="150" Theme="Office365" AllowEllipsisInText="true">
    <Items>
        <dx:ListEditItem Text="Item 1" Value="Item 1" />                
        <dx:ListEditItem Text="Item 2 Text Text Text Text Text Text" />
        <dx:ListEditItem Text="Item 3" Value="Item 4" />
    </Items>
</dx:ASPxListBox>

ASPxListBox-EllipsisInText

See Also