aspnet-devexpress-dot-web-dot-cloudcontrolitem.md
Gets or sets the item’s description (text).
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("Item")]
public string Text { get; set; }
<DefaultValue("Item")>
Public Property Text As String
| Type | Default | Description |
|---|---|---|
| String | "Item" |
A string value that specifies the item’s description.
|
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.
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