ListEditItem.Text Property
Gets or sets the list item’s text.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
A String value representing the list item’s text. |
#Remarks
Use the Text property to specify the textual representation of the current list item.
Note
This property is not in effect for an editor’s multi-column mode.
#Example
function OnComboBoxSelectedIndexChanged(s, e) {
var item = s.GetSelectedItem();
popup.SetContentHTML(
"Selected item changed:<br /><br />" +
" <strong>text=</strong>'" + item.text + "'<br />" +
" <strong>value</strong>=" + item.value + "<br /><br />");
popup.ShowAtElementByID("comboPopupAnchor");
}
<dxe:ASPxComboBox ID="cbCombo" runat="server" Width="170px" ClientInstanceName="combo">
<ClientSideEvents SelectedIndexChanged="OnComboBoxSelectedIndexChanged" />
<Items>
<dxe:ListEditItem Text="Item #1" Value="0" />
<dxe:ListEditItem Text="Item #2" Value="1" />
<dxe:ListEditItem Text="Item #3" Value="2" />
</Items>
</dxe:ASPxComboBox>
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Text property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.