Back to Devexpress

ASPxListEdit.Items Property

aspnet-devexpress-dot-web-dot-aspxlistedit-55a4cb60.md

latest3.8 KB
Original Source

ASPxListEdit.Items Property

Gets the collection of items in the list editor.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public ListEditItemCollection Items { get; }
vb
Public ReadOnly Property Items As ListEditItemCollection

Property Value

TypeDescription
ListEditItemCollection

A ListEditItemCollection instance representing the collection of the editor’s items.

|

Remarks

This property is a wrapper of the ListEditProperties.Items property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Items 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.

asp-net-web-forms-scheduler-custom-adaptive-form-using-templates/CS/WebApplication1/DevExpress/ASPxSchedulerForms/AppointmentForm.ascx.cs#L237

csharp
List<String> result = new List<string>();
foreach(ListEditItem editItem in listBox.Items) {
    if(editItem.Selected)

xaf-how-to-display-a-collection-property-as-a-checked-list-box/CS/DXExample.Module.Web/WebCheckedListBoxPropertyEditor.cs#L58

csharp
ASPxCheckBoxList control = (ASPxCheckBoxList)sender;
foreach (ListEditItem item in control.Items) {
    object obj = objectSpace.GetObjectByKey(MemberInfo.ListElementTypeInfo.Type, item.Value);

asp-net-web-forms-scheduler-custom-adaptive-form-using-templates/VB/WebApplication1/DevExpress/ASPxSchedulerForms/AppointmentForm.ascx.vb#L246

vb
Dim result As New List(Of String)()
For Each editItem As ListEditItem In listBox.Items
    If editItem.Selected Then

xaf-how-to-display-a-collection-property-as-a-checked-list-box/VB/DXExample.Module.Web/WebCheckedListBoxPropertyEditor.vb#L57

vb
Dim control As ASPxCheckBoxList = CType(sender, ASPxCheckBoxList)
For Each item As ListEditItem In control.Items
    Dim obj As Object = objectSpace.GetObjectByKey(MemberInfo.ListElementTypeInfo.Type, item.Value)

See Also

ASPxListEdit Class

ASPxListEdit Members

DevExpress.Web Namespace