Skip to content

Commit

Permalink
Sync with Kendo UI Professional
Browse files Browse the repository at this point in the history
  • Loading branch information
User Jenkins committed Jul 7, 2021
1 parent e7c5c77 commit 0a33f58
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
7 changes: 7 additions & 0 deletions docs/api/javascript/ui/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ Defines the value type of the field.

> **Note:** By default if a value is not provided the type will be **string**.
The available dataType options are:
* `"string"`
* `"number"`
* `"boolean"`
* `"date"`
* `"object"`

#### Example - set the editorTemplate

<div id="filter"></div>
Expand Down
35 changes: 35 additions & 0 deletions docs/api/javascript/ui/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,41 @@ Can be set to a JavaScript object which specifies whether the column should be e

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

#### Example - Exclude UnitsInStock column from the exported Excel file.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
toolbar: ["excel"],
dataSource: {
type: "odata",
transport: {
read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Products"
},
schema:{
model: {
fields: {
UnitsInStock: { type: "number" },
ProductName: { type: "string" },
UnitPrice: { type: "number" },
UnitsOnOrder: { type: "number" },
UnitsInStock: { type: "number" }
}
}
},
pageSize: 20,
},
pageable: true,
height: 550,
columns: [
{ field: "ProductName", title: "Product Name" },
{ field: "UnitPrice", title: "Unit Price" },
{ field: "UnitsOnOrder", title: "Units On Order" },
{ field: "UnitsInStock", title: "Units In Stock", exportable: { excel: false} } //excluded from the export
]
});
</script>

### columns.exportable.pdf `Boolean` *(default: true)*

If set to `false` the column will be excluded from the exported PDF file.
Expand Down
2 changes: 1 addition & 1 deletion docs/api/javascript/ui/treelist.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ The HTML attributes of the table cell (`<td>`) that is rendered for the column.
color: red;
}
</style>
// The table cells look like `<td class="name-cell" style="text-align: right">...</td>`.
//The table cells look like `<td role="gridcell" class="highlight" style="text-align: right;">...</td>`.

### columns.columns `Array`

Expand Down
5 changes: 3 additions & 2 deletions docs/controls/data-management/grid/appearance/rows.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ However, if your project requires you to avoid the `hover` state, use either of
}
```

* 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.
* 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.


```
.k-grid tr:not(.k-state-selected):hover {
Expand All @@ -61,7 +62,7 @@ However, if your project requires you to avoid the `hover` state, use either of
}
.k-grid tr.k-alt:not(.k-state-selected):hover {
background: #f1f1f1;
background: #f1f1f1; /* the color varies depending on the theme */
}
```
Expand Down

0 comments on commit 0a33f58

Please sign in to comment.