You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-aspnet/html-helpers/interactivity/sortable/integration/listview.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,11 @@ The Sortable reorders the HTML DOM elements. It does not automatically update th
21
21
22
22
## Reordering of ListView Items
23
23
24
-
To reorder the items of the ListView, initialize the Sortable on the ListView element. Normally, the `filter` property selects all elements that are direct children of the ListView element, for example, `.filter(">div")`.
24
+
To reorder the items of the ListView, initialize the Sortable on the ListView element. Specify the list items using the `filter` property -- select all elements that are direct children of the ListView content element, for example, `.filter(".k-listview-content > div")`.
25
25
26
26
## Reordering in Editable ListViews
27
27
28
-
If the editing functionality of the ListView is enabled, use a more specific filter selector that excludes the item which is currently in editing mode, for example, `.filter(">div:not(.k-edit-item)"`. In this way, the Sortable functionality will not interfere with the editing feature of the ListView.
28
+
If the editing functionality of the ListView is enabled, use a more specific filter selector that excludes the item which is currently in editing mode, for example, `.filter(".k-listview-item > div:not(.k-edit-item)"`. In this way, the Sortable functionality will not interfere with the editing feature of the ListView.
29
29
30
30
To reorder the data items of the ListView, use the [approach for reordering the Grid data items]({% slug sortable_aspnetcore_integration_grid %}#reordering-of-grid-table-rows). For more information on the Sortable events, refer to the [Sortable server-side API](/api/sortable#eventssystemactionkendomvcuifluentsortableeventbuilder).
Copy file name to clipboardExpand all lines: docs/controls/interactivity/sortable/integration/listview.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,11 @@ The Sortable reorders the HTML DOM elements. It does not automatically update th
21
21
22
22
## Reordering of ListView Items
23
23
24
-
To reorder the items of the ListView, initialize the Sortable on the ListView element. Normally, the `filter` property selects all elements that are direct children of the ListView element, for example, `.filter(">div")`.
24
+
To reorder the items of the ListView, initialize the Sortable on the ListView element. Specify the list items using the `filter` property -- select all elements that are direct children of the ListView content element, for example, `.filter(".k-listview-content > div")`.
25
25
26
26
## Reordering in Editable ListViews
27
27
28
-
If the editing functionality of the ListView is enabled, use a more specific filter selector that excludes the item which is currently in editing mode, for example, `.filter(">div:not(.k-edit-item)"`. In this way, the Sortable functionality will not interfere with the editing feature of the ListView.
28
+
If the editing functionality of the ListView is enabled, use a more specific filter selector that excludes the item which is currently in editing mode, for example, `.filter(".k-listview-content > div:not(.k-edit-item)"`. In this way, the Sortable functionality will not interfere with the editing feature of the ListView.
29
29
30
30
To reorder the data items of the ListView, use the [approach for reordering the Grid data items]({% slug integrationwith_grid_sortable %}#reordering-of-grid-table-rows). For more information on the Sortable events, refer to the [Sortable API](/api/javascript/ui/sortable#events) and the [demo on integrating the Sortable with the ListView](https://demos.telerik.com/kendo-ui/web/sortable/integration-listview.html).
0 commit comments