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/api/javascript/ui/grid.md
+107-4Lines changed: 107 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8656,12 +8656,11 @@ If set to `true` the user could reorder the rows by dragging them. By default re
8656
8656
});
8657
8657
</script>
8658
8658
8659
-
### resizable `Boolean`*(default:false)*
8659
+
### resizable `Boolean|Object`*(default:false)*
8660
8660
8661
-
If set to `true`, users can resize columns by dragging the edges (resize handles) of their header cells. As of Kendo UI Q1 2015, users can also auto-fit a column by double-clicking
8662
-
its resize handle. In this case the column will assume the smallest possible width, which allows the column content to fit without wrapping.
8661
+
If object is used, it allows configuration of `resizable.columns` and `resizable.rows`. If set to `true`, only column resizing will be enabled.
8663
8662
8664
-
By default, column resizing is disabled.
8663
+
By default, column and row resizing is disabled.
8665
8664
8666
8665
#### Example - enable column resizing
8667
8666
@@ -8683,6 +8682,61 @@ By default, column resizing is disabled.
8683
8682
> Check [Column resizing](https://demos.telerik.com/kendo-ui/grid/column-resizing) for a live demo and
8684
8683
the [Column widths](/web/grid/appearance#column-widths) help section for additional relevant information.
8685
8684
8685
+
#### resizable.columns `Boolean`
8686
+
8687
+
If set to `true`, users can resize columns by dragging the edges (resize handles) of their header cells. As of Kendo UI Q1 2015, users can also auto-fit a column by double-clicking its resize handle. In this case the column will assume the smallest possible width, which allows the column content to fit without wrapping.
8688
+
8689
+
By default, column resizing is disabled.
8690
+
8691
+
#### Example - enable column resizing
8692
+
8693
+
<div id="grid"></div>
8694
+
<script>
8695
+
$("#grid").kendoGrid({
8696
+
columns: [
8697
+
{ field: "name" },
8698
+
{ field: "age" }
8699
+
],
8700
+
dataSource: [
8701
+
{ name: "Jane Doe", age: 30 },
8702
+
{ name: "John Doe", age: 33 }
8703
+
],
8704
+
resizable: {
8705
+
columns: true
8706
+
}
8707
+
});
8708
+
</script>
8709
+
8710
+
> Check [Column resizing](https://demos.telerik.com/kendo-ui/grid/column-resizing) for a live demo and
8711
+
the [Column widths](/web/grid/appearance#column-widths) help section for additional relevant information.
8712
+
8713
+
#### resizable.rows `Boolean`
8714
+
8715
+
If set to `true`, users can resize Grid rows by dragging their bottom edge. Users can also auto-fit a row by double-clicking its bottom edge. In this case the row will assume the smallest possible height, which allows the cells content to be fully displayed.
8716
+
8717
+
In scenario where row selection is enabled, users are allowed to resize all selected rows at once by performing the resize interaction on one of them.
8718
+
8719
+
By default, row resizing is disabled.
8720
+
8721
+
#### Example - enable column resizing
8722
+
8723
+
<div id="grid"></div>
8724
+
<script>
8725
+
$("#grid").kendoGrid({
8726
+
columns: [
8727
+
{ field: "name" },
8728
+
{ field: "age" }
8729
+
],
8730
+
dataSource: [
8731
+
{ name: "Jane Doe", age: 30 },
8732
+
{ name: "John Doe", age: 33 }
8733
+
],
8734
+
resizable: {
8735
+
rows: true
8736
+
}
8737
+
});
8738
+
</script>
8739
+
8686
8740
### rowTemplate `String|Function`
8687
8741
8688
8742
The [template](/api/javascript/kendo/methods/template) which renders rows. Be default renders a table row (`<tr>`) for every data source item.
@@ -14100,6 +14154,55 @@ If invoked prevents the rowReorder action - prevents the client-side reordering.
14100
14154
});
14101
14155
</script>
14102
14156
14157
+
### rowResize
14158
+
14159
+
Fired when the user resizes a row (rows).
14160
+
14161
+
The event handler function context (available via the `this` keyword) will be set to the widget instance.
14162
+
14163
+
#### Event Data
14164
+
14165
+
##### e.row `jQuery`
14166
+
14167
+
A jQuery object holding a reference to the resized row element.
14168
+
14169
+
##### e.rows `jQuery`
14170
+
14171
+
A jQuery object holding a reference to all row elements that would be affected by the resizing. In scenario where row selection is enabled, users are allowed to resize all selected rows at once by performing the resize on one of them.
14172
+
14173
+
##### e.newHeight `Number`
14174
+
14175
+
The new row height.
14176
+
14177
+
##### e.oldHeight `Number`
14178
+
14179
+
The previous row height.
14180
+
14181
+
##### e.sender `kendo.ui.Grid`
14182
+
14183
+
The widget instance which fired the event.
14184
+
14185
+
#### Example
14186
+
14187
+
<div id="grid"></div>
14188
+
<script>
14189
+
$("#grid").kendoGrid({
14190
+
columns: [
14191
+
{ field: "name" },
14192
+
{ field: "age" }
14193
+
],
14194
+
dataSource: [
14195
+
{ name: "Jane Doe", age: 30 },
14196
+
{ name: "John Doe", age: 33 }
14197
+
],
14198
+
resizable: { rows: true },
14199
+
rowResize: function(e) {
14200
+
/* The result can be observed in the DevTools(F12) console of the browser. */
page_title: jQuery CheckBox Documentation - Getting Started with the CheckBox
4
+
description: "Get started with the jQuery CheckBox by Kendo UI and learn how to create, initialize, and enable the component."
5
+
slug: getting_started_kendoui_checkbox_widget
6
+
position: 2
7
+
---
8
+
9
+
# Getting Started with the CheckBox
10
+
11
+
This guide demonstrates how to get up and running with the Kendo UI for jQuery CheckBox.
12
+
13
+
After the completion of this guide, you will be able to achieve the following end result:
14
+
15
+
```dojo
16
+
<input id="checkbox" />
17
+
18
+
<script>
19
+
20
+
$("#checkbox").kendoCheckBox({
21
+
label: "Checkbox",
22
+
rounded:"large",
23
+
size:"large",
24
+
checked: true
25
+
});
26
+
</script>
27
+
```
28
+
29
+
## 1. Create an Empty input Element
30
+
31
+
First, create an `<input/>` element on the page that will serve as the initialization element of the CheckBox component.
32
+
33
+
```html
34
+
<inputid='checkbox'/>
35
+
```
36
+
37
+
## 2. Initialize the CheckBox
38
+
39
+
In this step, you will initialize the CheckBox from the `<input>` element. All settings of the CheckBox will be provided in the initialization script statement and you have to describe its layout and configuration in JavaScript.
40
+
41
+
```html
42
+
<inputid="checkbox"/>
43
+
44
+
<script>
45
+
// Target the input element by using jQuery and then call the kendoCheckBox() method.
46
+
$("#checkbox").kendoCheckBox();
47
+
</script>
48
+
```
49
+
50
+
## 3. Define the CheckBox Appearance
51
+
52
+
Once the basic initialization is completed, you can start adding additional configurations to the CheckBox. The component allows you to specify various styling options.
53
+
54
+
```html
55
+
<inputid="checkbox"/>
56
+
57
+
<script>
58
+
59
+
// Target the input element by using jQuery and then call the kendoCheckBox() method.
60
+
$("#checkbox").kendoCheckBox({
61
+
size:"large",
62
+
rounded:"large"
63
+
});
64
+
</script>
65
+
```
66
+
67
+
## 4. Configure the CheckBox Label
68
+
69
+
The CheckBox allows you to configure the text of the label rendered next to the box through the [label](/api/javascript/ui/checkbox/configuration/label).
70
+
71
+
```html
72
+
<inputid="checkbox"/>
73
+
74
+
<script>
75
+
76
+
// Target the input element by using jQuery and then call the kendoCheckBox() method.
77
+
$("#checkbox").kendoCheckBox({
78
+
label:"Checkbox"
79
+
size:"large",
80
+
rounded:"large"
81
+
});
82
+
</script>
83
+
```
84
+
85
+
## 5. Define the Checked State
86
+
87
+
You can specify whether the CheckBox will be checked by default or not.
88
+
89
+
```html
90
+
<inputid="checkbox"/>
91
+
92
+
<script>
93
+
94
+
// Target the input element by using jQuery and then call the kendoCheckBox() method.
Copy file name to clipboardExpand all lines: docs/controls/checkbox/overview.md
+7-17Lines changed: 7 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,30 +10,20 @@ position: 1
10
10
11
11
The CheckBox allows you to provide checkbox functionality to `<input />` elements, style them, set an encoded or decoded label, and disable the CheckBox.
12
12
13
-
*[Demo page for the CheckBox](https://demos.telerik.com/kendo-ui/checkbox/index)
14
-
15
-
## Initializing the CheckBox
16
-
17
-
To initialize the CheckBox, use the `<input />` element.
18
-
19
-
The following example demonstrates how to initialize the CheckBox from an existing `<input />` element.
20
-
21
-
```dojo
22
-
<input id="checkbox" />
23
-
24
-
<script>
25
-
$("#checkbox").kendoCheckBox();
26
-
</script>
27
-
```
13
+

>tip To learn more about the appearance, anatomy, and accessibility of the CheckBox, visit the [Progress Design System documentation](https://www.telerik.com/design-system/docs/components/checkbox/)—an information portal offering rich component usage guidelines, descriptions of the available style variables, and globalization support details.
20
+
## Next Steps
21
+
22
+
*[Getting Started with the Kendo UI CheckBox for jQuery]({% slug getting_started_kendoui_checkbox_widget %})
23
+
*[Overview of the CheckBox (Demo)](https://demos.telerik.com/kendo-ui/checkbox/index)
24
+
*[JavaScript API Reference of the CheckBox](/api/javascript/ui/checkbox)
35
25
36
26
## See Also
37
27
38
-
*[Basic Usage of the CheckBox (Demo)](https://demos.telerik.com/kendo-ui/checkbox/index)
28
+
*[Overview of the CheckBox (Demo)](https://demos.telerik.com/kendo-ui/checkbox/index)
39
29
*[JavaScript API Reference of the CheckBox](/api/javascript/ui/checkbox)
0 commit comments