Tab

CloudControlItem.Text Property

Gets or sets the item’s description (text).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

[DefaultValue("Item")]
public string Text { get; set; }

Property Value

Type Default Description
String

“Item”

A string value that specifies the item’s description.

Remarks

The Text property specifies the item’s description. The description is rendered as a link that when clicked, allows the user to drill into the selected category. A click on this link navigates the application to the location specified by the CloudControlItem.NavigateUrl property.

Example

The following example illustrates how to obtain the Text property value of a clicked Iiem on the client side.

<dx:ASPxCloudControl ID="ASPxCloudControl1" runat="server" DataSourceID="AccessDataSource1"
    TextField="Name" ValueField="Area">
    <ClientSideEvents ItemClick="function(s, e) {
    var text = e.htmlElement.innerText;
    alert(text);
    }" />
</dx:ASPxCloudControl>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Data.mdb"
    SelectCommand="SELECT [Name], [Area] FROM [country]"></asp:AccessDataSource>
See Also