Skip to main content
Tab

ASPxListBox.SelectAllText Property

SECURITY NOTE

Setting this property to values from an untrusted source may introduce security-related issues, since the property value is not encoded and is rendered as HTML markup. Call the HttpUtility.HtmlEncode method to encode the value.

Review the following help topic to better protect websites from cross-site scripting (XSS) attacks: HTML Encoding.

Gets or sets the text (or tooltip) for the “Select All” check box in a list box.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("Select All")]
public string SelectAllText { get; set; }

Property Value

Type Default Description
String "Select All"

A string value specifying the “Select All” check box’s text (or tooltip).

Remarks

Use the SelectAllText property as follows:

  • To specify the text for the “Select All” check box if the list box has no columns.

    ASPxListBox-SelectAllText-Items

    <dx:ASPxListBox ID="ASPxListBox2" EnableSelectAll="True" SelectionMode="CheckColumn" SelectAllText="Test" runat="server">
        <Items>
            <dx:ListEditItem Text="Item1" Value="1" />
            <dx:ListEditItem Text="Item2" Value="2" />
            <dx:ListEditItem Text="Item3" Value="3" />
        </Items>
    </dx:ASPxListBox>
    
  • To specify the tooltip for the “Select All” check box if the list box’s data is organized in columns.

    ASPxListBox-SelectAllText-Columns

    <dx:ASPxListBox ID="ASPxListBox1" EnableSelectAll="true" SelectionMode="CheckColumn" SelectAllText="Test" runat="server" DataSourceID="SqlDataSource1">
    <Columns>
        <dx:ListBoxColumn FieldName="ProductName">
        </dx:ListBoxColumn>
        <dx:ListBoxColumn FieldName="UnitPrice">
        </dx:ListBoxColumn>
    </Columns>
    </dx:ASPxListBox>
    

Note that the SelectAllText property is in effect if the ASPxListBox.SelectionMode property is set to ListEditSelectionMode.CheckColumn.

Online demo: List Box with Multiple Selection

See Also