-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
296 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
...pnet/integration-with-other-telerik-products/capture-issues-with-fiddler-jam.md
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-30.7 KB
...integration-with-other-telerik-products/images/fiddler-jam-capture-settings.png
Binary file not shown.
61 changes: 61 additions & 0 deletions
61
docs-aspnet/knowledge-base/grid-cascading-dropdownlists.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
title: Editing Grid with Cascading DropDownLists | ||
description: A reference on how to implement cascading DropDownLists for editing records in Telerik UI for {{ site.framework }} Grid component. | ||
type: how-to | ||
page_title: Grid Editing with Cascading DropDownLists | ||
slug: grid-cascading-dropdownlists | ||
tags: grid, edit, mvc, cascading, dropdownlist | ||
res_type: kb | ||
--- | ||
|
||
## Environment | ||
|
||
<table> | ||
<tr> | ||
<td>Product</td> | ||
<td>{{ site.product }} Grid</td> | ||
</tr> | ||
</table> | ||
|
||
## Description | ||
|
||
How can I implement cascading DropDownLists for editing rows in Telerik UI for {{ site.framework }} Grid component? | ||
|
||
## Solution | ||
|
||
The Grid provides 3 editing modes - InCell, InLine and PopUp. Usually, in order for the cascading widgets to work, they both (or more) have to be rendered at the same time. | ||
|
||
Therefore, for Inline and PopUp editing modes you can check the following sample: | ||
|
||
https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/grid-editing-cascading-dropdownlist | ||
|
||
However, for InCell editing mode, the only viable approach is demonstrated in this sample: | ||
|
||
https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/grid-incell-editing-with-cascading-dropdownlist | ||
|
||
## More {{ site.framework }} Grid Resources | ||
|
||
* [{{ site.framework }} Grid Demos](https://demos.telerik.com/{{ site.platform }}/grid/index) | ||
|
||
{% if site.core %} | ||
* [{{ site.framework }} Grid Product Page](https://www.telerik.com/aspnet-core-ui/grid) | ||
|
||
* [Telerik UI for {{ site.framework }} Video Onboarding Course (Free for trial users and license holders)]({%slug virtualclass_uiforcore%}) | ||
|
||
* [Telerik UI for {{ site.framework }} Forums](https://www.telerik.com/forums/aspnet-core-ui) | ||
|
||
{% else %} | ||
* [{{ site.framework }} Grid Product Page](https://www.telerik.com/aspnet-mvc/grid) | ||
|
||
* [Telerik UI for {{ site.framework }} Video Onboarding Course (Free for trial users and license holders)]({%slug virtualclass_uiformvc%}) | ||
|
||
* [Telerik UI for {{ site.framework }} Forums](https://www.telerik.com/forums/aspnet-mvc) | ||
{% endif %} | ||
|
||
## See Also | ||
|
||
* [Client-Side API Reference of the Grid for {{ site.framework }}](https://docs.telerik.com/kendo-ui/api/javascript/ui/grid) | ||
* [Server-Side API Reference of the Grid for {{ site.framework }}](https://docs.telerik.com/{{ site.platform }}/api/grid) | ||
* [Telerik UI for {{ site.framework }} Breaking Changes]({%slug breakingchanges_2023%}) | ||
* [Telerik UI for {{ site.framework }} Knowledge Base](https://docs.telerik.com/{{ site.platform }}/knowledge-base) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
title: Toolbar Template | ||
page_title: jQuery Grid Documentation - Toolbar Template | ||
description: "Get started with the jQuery Grid by Kendo UI and learn how to render different Toolbar content by using Kendo UI Templates." | ||
slug: toolbar_templates_kendoui_grid_component | ||
position: 4 | ||
--- | ||
|
||
# Toolbar Templates | ||
|
||
The Kendo UI Grid provides full control over the rendering of its Toolbar content by using the [`Kendo UI Templates`](/framework/templates/overview). The [`toolbar.template`](/api/javascript/ui/grid/configuration/toolbar.template) configuration enables you to specify your own layout instead of using the built-in buttons. | ||
|
||
## Setting a Toolbar Template as a Function | ||
|
||
The [`template`](/api/javascript/ui/grid/configuration/toolbar.template) toolbar configuration enables you to build a [`Kendo UI Template`](/framework/templates/overview) by passing a function. | ||
|
||
The following example demonstrates how to set the template as a function that is returned by [`kendo.template`](/api/javascript/kendo/methods/template). | ||
|
||
```dojo | ||
<div id="grid"></div> | ||
<script id="template" type="text/x-kendo-template"> | ||
<a type="button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" href="\#" onclick="return toolbar_click()">Command</a> | ||
</script> | ||
<script> | ||
function toolbar_click() { | ||
/* The result can be observed in the DevTools(F12) console of the browser. */ | ||
console.log("Toolbar command is clicked!"); | ||
return false; | ||
} | ||
$("#grid").kendoGrid({ | ||
toolbar: [ | ||
{ template: kendo.template($("#template").html()) } | ||
], | ||
columns: [ | ||
{ field: "name" }, | ||
{ field: "age" } | ||
], | ||
dataSource: [ | ||
{ name: "Jane Doe", age: 30 }, | ||
{ name: "John Doe", age: 33 } | ||
] | ||
}); | ||
</script> | ||
``` | ||
|
||
## Setting a Toolbar Template as a String | ||
|
||
The [`template`](/api/javascript/ui/grid/configuration/toolbar.template) toolbar configuration enables you to create HTML chunks by passing directly a `string`. | ||
|
||
The following example demonstrates how to set the template as a string. | ||
|
||
```dojo | ||
<div id="grid"></div> | ||
<script> | ||
function toolbar_click() { | ||
/* The result can be observed in the DevTools(F12) console of the browser. */ | ||
console.log("Toolbar command is clicked!"); | ||
return false; | ||
} | ||
$("#grid").kendoGrid({ | ||
toolbar: [ | ||
{ template: "<button id='custom-button' class='k-button k-button-md k-rounded-md k-button-solid k-button-solid-base'>Custom command</button>" } | ||
], | ||
columns: [ | ||
{ field: "name" }, | ||
{ field: "age" } | ||
], | ||
dataSource: [ | ||
{ name: "Jane Doe", age: 30 }, | ||
{ name: "John Doe", age: 33 } | ||
] | ||
}); | ||
</script> | ||
``` | ||
|
||
## KB Articles on Toolbar Templates | ||
|
||
* [Place Edit or Update Buttons to Grid Toolbar]({% slug grid-edit-command-toolbar %}) | ||
* [Lock and Unlock Grid Columns by Using Toolbar instead of Column Menu]({% slug grid-lock-unlock-using-toolbar %}) | ||
* [Find Out More in the Knowledge Base](/knowledge-base) | ||
|
||
## See Also | ||
|
||
* [Using Toolbar Templates in the Grid (Demo)](https://demos.telerik.com/kendo-ui/grid/toolbar-template) | ||
* [Introduction on Templates]({% slug overview_kendoui_templatescomponent %}) | ||
* [JavaScript API Reference of the Grid](/api/javascript/ui/grid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.