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
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7964,7 +7964,10 @@ the [Column widths](/web/grid/appearance#column-widths) help section for additio
7964
7964
7965
7965
The [template](/api/javascript/kendo/methods/template) which renders rows. Be default renders a table row (`<tr>`) for every data source item.
7966
7966
7967
-
> The outermost HTML element in the template must be a table row (`<tr>`). That table row must have the `uid` data attribute set to `#= uid #`. The grid uses the `uid` data attribute to determine the data to which a table row is bound to.
7967
+
> There are a few important things to keep in mind when using `rowTemplate`.
7968
+
>
7969
+
>* The outermost HTML element in the template must be a table row (`<tr>`). That table row must have the `uid` data attribute set to `#= uid #`. The grid uses the `uid` data attribute to determine the data to which a table row is bound to.
7970
+
>* If `rowTemplate` is used alongside with `detailTemplate`, the row (`<tr>`) element needs to have class `k-master-row`. The first `<td>` element of the row needs to have class `k-hierarchy-cell`. Check the [`Row Templates documentation`](/controls/data-management/grid/Templates/row-templates) for more information.
7968
7971
7969
7972
#### Example - specify row template as a function
7970
7973
@@ -8328,7 +8331,7 @@ The "search" built-in search panel for the grid.
8328
8331
<div id="grid"></div>
8329
8332
<script>
8330
8333
$("#grid").kendoGrid({
8331
-
toolbar: "<p>My string template in a paragraph.</p>",
toolbar: kendo.template("<p>My function template.</p>"),
8365
+
toolbar: kendo.template($("#template").html()),
8355
8366
columns: [
8356
8367
{ field: "name" },
8357
8368
{ field: "age" }
@@ -8367,6 +8378,10 @@ The "search" built-in search panel for the grid.
8367
8378
},
8368
8379
editable: true
8369
8380
});
8381
+
8382
+
function myClick() {
8383
+
kendo.alert("Clicked!")
8384
+
}
8370
8385
</script>
8371
8386
8372
8387
#### Example - configure the Grid Toolbar as an array of commands
@@ -10078,7 +10093,10 @@ A string, DOM element or jQuery object which represents the table row(s) or cell
10078
10093
10079
10094
Gets an array that holds the id field values of the selected rows.
10080
10095
10081
-
> **Note:** In order for the method to return the selected IDs you need to define an ID field in [`schema.model`](/api/javascript/data/datasource/configuration/schema.model).
10096
+
> There are a few important things to keep in mind when using `selectedKeyNames`.
10097
+
>
10098
+
> ***In order for the method to return the selected IDs you need to define an ID field in [`schema.model`](/api/javascript/data/datasource/configuration/schema.model).**
10099
+
> ***The selected IDs are sorted in ascending order inside the `selectedKeyNames` array.**
The `role` [data attribute](/framework/data-attribute-initialization) of the widget that is used in the filter menu, or a JavaScript function which initializes that widget.
Copy file name to clipboardExpand all lines: docs/controls/charts/appearance.md
+50-37Lines changed: 50 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,51 +19,64 @@ The Charts come with [a set of predefined themes]({% slug themesandappearnce_ken
19
19
20
20
> As of the Kendo UI R2 2015 (2015.2.624) release, [all CSS code related to the rendering of data visualization widgets (Gauges, Charts, Barcodes, Diagrams, and Maps) is now moved to the CSS files of the widgets]({% slug breakingchanges2015_kendoui %}). As a result, you need to remove all legacy references to `kendo.dataviz.css` and `kendo.dataviz.[theme].css`.
21
21
22
-
$("#chart").kendoChart({
23
-
theme: "blueOpal",
24
-
series: [{
25
-
type: "bar",
26
-
name: "United States",
27
-
data: [67.96, 68.93, 75, 74, 78]
28
-
}],
29
-
categoryAxis: {
30
-
categories: [2005, 2006, 2007, 2008, 2009]
31
-
}
32
-
});
33
-
22
+
```dojo
23
+
<div id="chart"></div>
24
+
<script>
25
+
$("#chart").kendoChart({
26
+
theme: "blueOpal",
27
+
series: [{
28
+
type: "bar",
29
+
name: "United States",
30
+
data: [67.96, 68.93, 75, 74, 78]
31
+
}],
32
+
categoryAxis: {
33
+
categories: [2005, 2006, 2007, 2008, 2009]
34
+
}
35
+
});
36
+
</script>
37
+
```
34
38
35
39
## Sass Themes
36
40
37
-
As of the R2 2017 SP1 release, the Chart provides styling options through [Sass-based themes]({% slug sassbasedthemes_kendoui %}). When the theme is set to `inherit`, the Chart reads colors and fonts from the theme variables.
38
-
39
-
$("#chart").kendoChart({
40
-
theme: "inherit",
41
-
series: [{
42
-
type: "bar",
43
-
name: "United States",
44
-
data: [67.96, 68.93, 75, 74, 78]
45
-
}],
46
-
categoryAxis: {
47
-
categories: [2005, 2006, 2007, 2008, 2009]
48
-
}
49
-
});
50
-
41
+
As of the R2 2017 SP1 release, the Chart provides styling options through [Sass-based themes]({% slug sassbasedthemes_kendoui %}). When the theme is set to `sass`, the Chart reads colors and fonts from the theme variables.
42
+
43
+
```dojo
44
+
<div id="chart"></div>
45
+
<script>
46
+
$("#chart").kendoChart({
47
+
theme: "sass",
48
+
series: [{
49
+
type: "bar",
50
+
name: "United States",
51
+
data: [67.96, 68.93, 75, 74, 78]
52
+
}],
53
+
categoryAxis: {
54
+
categories: [2005, 2006, 2007, 2008, 2009]
55
+
}
56
+
});
57
+
</script>
58
+
```
51
59
52
60
## Animated Transitions
53
61
54
62
Kendo UI Charts use animated transitions to display new and updated data. To disable these transitions, use the `transitions` option.
Copy file name to clipboardExpand all lines: docs/controls/charts/sparkline/overview.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ The Kendo UI Sparkline is a very small chart that is drawn without axes, coordin
12
12
13
13
Sparklines behave like inline elements as they are rendered inside a `span` element so that they can be easily embedded in text as opposed to the standard Telerik UI Charts which behave like block elements as they are rendered inside `div` elements.
14
14
15
+
> * The Sparkline inherits configurations, methods, fields and events from the [Categorical Charts]({% slug htmlhelpers_categoricalcharts_aspnetcore %}).
16
+
15
17
While Sparklines are typically line charts, other types are supported as well:
0 commit comments