Tab

ASPxAutoCompleteBoxBase.AllowEllipsisInText Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

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

For the combo box that has no columns, the AllowEllipsisInText property is in effect if the ASPxAutoCompleteBoxBase.DropDownWidth property is specified.

The following example illustrates how to use the AllowEllipsisInText property.

protected void Page_Load(object sender, EventArgs e)
{
    var dataSource = new[]
        {
        new { Column1 = "very very very very long text", Co