-
Data Grid
- Overview
-
Data Binding
-
Paging and Scrolling
-
Editing
-
Grouping
-
Filtering and Sorting
- Focused Row
-
Row Drag & Drop
-
Selection
-
Columns
- State Persistence
-
Appearance
-
Templates
-
Data Summaries
-
Master-Detail
-
Export to PDF
-
Export to Excel
-
Adaptability
- Keyboard Navigation
-
Pivot Grid
- Overview
-
Data Binding
-
Field Chooser
-
Features
-
Export to Excel
-
Tree List
- Overview
-
Data Binding
- Sorting
- Paging
-
Editing
- Node Drag & Drop
- Focused Row
-
Selection
-
Filtering
-
Column Customization
- State Persistence
- Adaptability
- Keyboard Navigation
-
Scheduler
- Overview
-
Data Binding
-
Views
-
Features
- Virtual Scrolling
-
Grouping
-
Customization
- Adaptability
-
Html Editor
-
Chat
-
Diagram
- Overview
-
Data Binding
-
Featured Shapes
-
Custom Shapes
-
Document Capabilities
-
User Interaction
- UI Customization
- Adaptability
-
Charts
- Overview
-
Data Binding
-
Area Charts
-
Bar Charts
- Bullet Charts
-
Doughnut Charts
-
Financial Charts
-
Line Charts
-
Pie Charts
-
Point Charts
-
Polar and Radar Charts
-
Range Charts
-
Sparkline Charts
-
Tree Map
-
Funnel and Pyramid Charts
- Sankey Chart
-
Combinations
-
More Features
-
Export
-
Selection
-
Tooltips
-
Zooming
-
-
Gantt
- Overview
-
Data
-
UI Customization
- Strip Lines
- Export to PDF
- Sorting
-
Filtering
-
Gauges
- Overview
-
Data Binding
-
Bar Gauge
-
Circular Gauge
-
Linear Gauge
-
Navigation
- Overview
- Accordion
-
Menu
- Multi View
-
Drawer
-
Tab Panel
-
Tabs
-
Toolbar
- Pagination
-
Tree View
- Right-to-Left Support
-
Layout
-
Tile View
- Splitter
-
Gallery
- Scroll View
- Resizable
-
-
Editors
- Overview
- Autocomplete
-
Calendar
- Check Box
- Color Box
- Date Box
-
Date Range Box
-
Drop Down Box
-
Number Box
-
Select Box
- Switch
-
Tag Box
- Text Area
- Text Box
- Validation
- Custom Text Editor Buttons
- Right-to-Left Support
- Editor Appearance Variants
-
Forms and Multi-Purpose
- Overview
- Button Group
- Field Set
-
Filter Builder
-
Form
- Radio Group
-
Range Selector
- Numeric Scale (Lightweight)
- Numeric Scale
- Date-Time Scale (Lightweight)
- Date-Time Scale
- Logarithmic Scale
- Discrete scale
- Custom Formatting
- Use Range Selection for Calculation
- Use Range Selection for Filtering
- Image on Background
- Chart on Background
- Customized Chart on Background
- Chart on Background with Series Template
- Range Slider
- Slider
-
Sortable
-
File Management
-
File Manager
- Overview
-
File System Types
-
Customization
-
File Uploader
-
-
Actions and Lists
-
Maps
- Overview
-
Map
-
Vector Map
-
Dialogs and Notifications
-
Localization
List - Item Deletion UI
The List displays a collection of items as a scrollable list. To create a list, pass an array of items to the dataSource property.
To allow users to delete items, set the allowItemDeleting property to true. Use the "Allow deletion" checkbox under the List to toggle this property.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
<div class="list-api-demo">
<div class="widget-container">
@(Html.DevExtreme().List()
.ID("simpleList")
.Height(400)
.DataSource(d => d.WebApi()
.Controller("ListEditing")
.DeleteAction(true)
.Key("ID")
)
.AllowItemDeleting(false)
.ItemDeleteMode(ListItemDeleteMode.Toggle)
.ItemTemplate(@<text><%- Text %></text>)
)
</div>
<div class="options">
<div class="caption">Options</div>
<div class="option">
@(Html.DevExtreme().CheckBox()
.Value(false)
.Text("Allow deletion")
.OnValueChanged("checkBox_valueChanged")
)
</div>
<div class="option">
<span>Item delete mode</span>
@(Html.DevExtreme().SelectBox()
.ID("itemDeleteMode")
.Disabled(true)
.InputAttr("aria-label", "Delete Mode")
.DataSource(Enum.GetValues(typeof(ListItemDeleteMode)))
.Value(ListItemDeleteMode.Toggle)
.OnValueChanged("selectBox_valueChanged")
)
</div>
</div>
</div>
<script>
var checkBox_valueChanged = function(e) {
$("#simpleList").dxList("option", "allowItemDeleting", e.value);
$("#itemDeleteMode").dxSelectBox("option", "disabled", !e.value);
};
var selectBox_valueChanged = function(e) {
$("#simpleList").dxList("option", "itemDeleteMode", e.value);
};
</script>
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
The "Deletion UI type" drop-down menu under the List allows you to switch between the different deletion behaviors described below. Menu items correspond to itemDeleteMode property values.
-
"static" (default for desktops)
Click an X button next to a list item to delete it. -
"toggle"
Click a minus icon next to a list item to display the Delete button. -
"slideButton"
Swipe left or right to show the Delete button next to the list item. The content of the list item does not move. -
"slideItem" (default for iOS)
Slide list items left. The content of the list item shifts to make space for the Delete button. -
"swipe" (default for Android)
Swipe items to delete them. -
"context"
Right-click or touch and hold the list item to call a context menu that contains the Delete option.
To get started with the DevExtreme List component, refer to the following tutorial for step-by-step instructions: Getting Started with List.