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
If set to `true` the user would be able to select grid rows. By default selection is disabled.
8001
8001
@@ -8044,6 +8044,62 @@ Can also be set to the following string values:
8044
8044
8045
8045
> Check [Selection](https://demos.telerik.com/kendo-ui/grid/selection) for a live demo.
8046
8046
8047
+
### selectable.mode `String`
8048
+
8049
+
Can be set to the following string values:
8050
+
8051
+
- "row" - the user can select a single row.
8052
+
- "cell" - the user can select a single cell.
8053
+
- "multiple, row" - the user can select multiple rows.
8054
+
- "multiple, cell" - the user can select multiple cells.
8055
+
8056
+
> When the selectable property is set to "multiple, row" or "multiple, cell" the Grid cannot be scrollable on mobile devices as both are listening on the same event.
8057
+
8058
+
#### Example
8059
+
8060
+
<div id="grid"></div>
8061
+
<script>
8062
+
$("#grid").kendoGrid({
8063
+
columns: [
8064
+
{ field: "name" },
8065
+
{ field: "age" }
8066
+
],
8067
+
dataSource: [
8068
+
{ name: "Jane Doe", age: 30 },
8069
+
{ name: "John Doe", age: 33 }
8070
+
],
8071
+
selectable: {
8072
+
mode: "multiple, row"
8073
+
}
8074
+
});
8075
+
</script>
8076
+
8077
+
### selectable.ignoreOverlapped `Boolean`
8078
+
8079
+
When set to true, visually hidden elements that match by the filter option criteria but are overlapped by other elements that also can be selected, are ignored.
8080
+
8081
+
> Applies only for multiple cell selection.
8082
+
8083
+
#### Example
8084
+
8085
+
<div id="grid"></div>
8086
+
<script>
8087
+
$("#grid").kendoGrid({
8088
+
columns: [
8089
+
{ field: "name" },
8090
+
{ field: "age" }
8091
+
],
8092
+
dataSource: [
8093
+
{ name: "Jane Doe", age: 30 },
8094
+
{ name: "John Doe", age: 33 }
8095
+
],
8096
+
selectable: {
8097
+
mode: "multiple, cell",
8098
+
ignoreOverlapped: true
8099
+
}
8100
+
});
8101
+
</script>
8102
+
8047
8103
### sortable `Boolean|Object`*(default: false)*
8048
8104
8049
8105
If set to `true` the user could sort the grid by clicking the column header cells. By default sorting is disabled.
Copy file name to clipboardExpand all lines: docs/api/javascript/ui/window.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -942,7 +942,7 @@ Indicates whether the content will be fetched within an `iframe` or with AJAX, a
942
942
943
943
### restore
944
944
945
-
Restores a maximized or minimized Window to its previous state. Triggers the `resize`event.
945
+
Restores a maximized or minimized Window to its previous state. Triggers the `resize`and `restore` events.
946
946
947
947
#### Returns
948
948
@@ -1389,3 +1389,33 @@ Triggered when the user resizes the Window.
1389
1389
var dialog = $("#dialog").data("kendoWindow");
1390
1390
dialog.bind("resize", window_resize);
1391
1391
</script>
1392
+
1393
+
### restore
1394
+
1395
+
Triggered when the Window is restored to its previous state(maximized or minimized) by pressing the restore button, or when the [`restore()`](/api/javascript/ui/window/methods/restore) method is called.
1396
+
1397
+
#### Example - subscribing to the restore event during initialization
1398
+
1399
+
<div id="dialog"></div>
1400
+
1401
+
<script>
1402
+
$("#dialog").kendoWindow({
1403
+
restore: function() {
1404
+
// the Window is back to its previous state
1405
+
}
1406
+
});
1407
+
</script>
1408
+
1409
+
#### Example - subscribing to the restore event after initialization
1410
+
1411
+
<div id="dialog"></div>
1412
+
1413
+
<script>
1414
+
function window_restore() {
1415
+
// the Window is back to its previous state
1416
+
}
1417
+
1418
+
var dialog = $("#dialog").kendoWindow().getKendoWindow();
0 commit comments