Skip to content

Commit 0a33f58

Browse files
author
User Jenkins
committed
Sync with Kendo UI Professional
1 parent e7c5c77 commit 0a33f58

File tree

4 files changed

+46
-3
lines changed

4 files changed

+46
-3
lines changed

docs/api/javascript/ui/filter.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,13 @@ Defines the value type of the field.
403403

404404
> **Note:** By default if a value is not provided the type will be **string**.
405405
406+
The available dataType options are:
407+
* `"string"`
408+
* `"number"`
409+
* `"boolean"`
410+
* `"date"`
411+
* `"object"`
412+
406413
#### Example - set the editorTemplate
407414

408415
<div id="filter"></div>

docs/api/javascript/ui/grid.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,41 @@ Can be set to a JavaScript object which specifies whether the column should be e
828828

829829
If set to `false` the column will be excluded from the exported Excel file.
830830

831+
#### Example - Exclude UnitsInStock column from the exported Excel file.
832+
833+
<div id="grid"></div>
834+
<script>
835+
$("#grid").kendoGrid({
836+
toolbar: ["excel"],
837+
dataSource: {
838+
type: "odata",
839+
transport: {
840+
read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Products"
841+
},
842+
schema:{
843+
model: {
844+
fields: {
845+
UnitsInStock: { type: "number" },
846+
ProductName: { type: "string" },
847+
UnitPrice: { type: "number" },
848+
UnitsOnOrder: { type: "number" },
849+
UnitsInStock: { type: "number" }
850+
}
851+
}
852+
},
853+
pageSize: 20,
854+
},
855+
pageable: true,
856+
height: 550,
857+
columns: [
858+
{ field: "ProductName", title: "Product Name" },
859+
{ field: "UnitPrice", title: "Unit Price" },
860+
{ field: "UnitsOnOrder", title: "Units On Order" },
861+
{ field: "UnitsInStock", title: "Units In Stock", exportable: { excel: false} } //excluded from the export
862+
]
863+
});
864+
</script>
865+
831866
### columns.exportable.pdf `Boolean` *(default: true)*
832867

833868
If set to `false` the column will be excluded from the exported PDF file.

docs/api/javascript/ui/treelist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ The HTML attributes of the table cell (`<td>`) that is rendered for the column.
183183
color: red;
184184
}
185185
</style>
186-
// The table cells look like `<td class="name-cell" style="text-align: right">...</td>`.
186+
//The table cells look like `<td role="gridcell" class="highlight" style="text-align: right;">...</td>`.
187187

188188
### columns.columns `Array`
189189

docs/controls/data-management/grid/appearance/rows.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ However, if your project requires you to avoid the `hover` state, use either of
5252
}
5353
```
5454

55-
* Override the `hover` styling by using the CSS code from the following example. The `#f1f1f1` value corresponds to the background color of the `.k-alt` table rows. To find the correct value for the Kendo UI theme that you are applying, use the DOM inspector of the browser. Alternatively, set a background color value of your preference.
55+
* Override the `hover` styling by using the CSS code from the following example (which utilizes Sass Bootstrap v.4 theme). The `#f1f1f1` value corresponds to the background color of the `.k-alt` table rows. To find the correct value for the Kendo UI theme that you are applying, use the DOM inspector of the browser. Alternatively, set a background color value of your preference.
56+
5657

5758
```
5859
.k-grid tr:not(.k-state-selected):hover {
@@ -61,7 +62,7 @@ However, if your project requires you to avoid the `hover` state, use either of
6162
}
6263
6364
.k-grid tr.k-alt:not(.k-state-selected):hover {
64-
background: #f1f1f1;
65+
background: #f1f1f1; /* the color varies depending on the theme */
6566
}
6667
```
6768

0 commit comments

Comments
 (0)