kendo-grid

How can I mapping nested Json to Kendo UI grid?

不想你离开。 提交于 2020-07-23 06:20:34
问题 I use a web api to send data to display in Kendo UI grid. my web api return a nested json. As follows: { "SearchRequest": { "Term": null, "SortDirection": "Desc", "Total": 0, "PageIndex": 1, "PageSize": 10, "CurrentSort": null }, "OperationalRisks": [ { "LocationCode": 224.0, "RegisterDate": "1/01/01" }, { "LocationCode": 211.0, "RegisterDate": "1/01/01" } ] } After that, I will try to display the data in the following way : columns: [ { field: "OperationalRisks.LocationCode", title: "#" }, {

How can I mapping nested Json to Kendo UI grid?

╄→гoц情女王★ 提交于 2020-07-23 06:19:32
问题 I use a web api to send data to display in Kendo UI grid. my web api return a nested json. As follows: { "SearchRequest": { "Term": null, "SortDirection": "Desc", "Total": 0, "PageIndex": 1, "PageSize": 10, "CurrentSort": null }, "OperationalRisks": [ { "LocationCode": 224.0, "RegisterDate": "1/01/01" }, { "LocationCode": 211.0, "RegisterDate": "1/01/01" } ] } After that, I will try to display the data in the following way : columns: [ { field: "OperationalRisks.LocationCode", title: "#" }, {

Angular Kendo Grid: Save Sorted Filtered Grid in a Variable

帅比萌擦擦* 提交于 2020-07-13 07:17:37
问题 We are making a Grid which is: Sortable, Selectable, Filterable, and Column selector, etc. What is the property in API for Kendo Angular Grid which does this? We are trying to store this filtered/sorted grid data into a variable, different from the Original Grid data. How can this be done? Currently looking through resource; https://www.telerik.com/kendo-angular-ui/components/grid/api/ <kendo-grid [data]="documentPropertyGridData" [resizable]="true" [reorderable]="true" [sortable]="true" >

Kendo UI for Angular how to save grid state

南楼画角 提交于 2020-07-09 06:06:50
问题 How to save the state of an Angular 2+ Kendo grid. In AngularJS we used getOptions and setOptions (https://www.telerik.com/forums/persist-state-in-angularjs) but I can not find any documentation on how to do this for the latest version of Kendo for Angular (https://www.telerik.com/kendo-angular-ui/components/grid/). Thank you in advance for any help or guidance. 回答1: Maybe this is a good start: https://plnkr.co/edit/?p=preview we use this approach to store filter state: public state: State =

Kendo UI for Angular how to save grid state

末鹿安然 提交于 2020-07-09 06:06:49
问题 How to save the state of an Angular 2+ Kendo grid. In AngularJS we used getOptions and setOptions (https://www.telerik.com/forums/persist-state-in-angularjs) but I can not find any documentation on how to do this for the latest version of Kendo for Angular (https://www.telerik.com/kendo-angular-ui/components/grid/). Thank you in advance for any help or guidance. 回答1: Maybe this is a good start: https://plnkr.co/edit/?p=preview we use this approach to store filter state: public state: State =

Kendo UI for Angular how to save grid state

五迷三道 提交于 2020-07-09 06:06:30
问题 How to save the state of an Angular 2+ Kendo grid. In AngularJS we used getOptions and setOptions (https://www.telerik.com/forums/persist-state-in-angularjs) but I can not find any documentation on how to do this for the latest version of Kendo for Angular (https://www.telerik.com/kendo-angular-ui/components/grid/). Thank you in advance for any help or guidance. 回答1: Maybe this is a good start: https://plnkr.co/edit/?p=preview we use this approach to store filter state: public state: State =

how use two kendo filter components for nested kendo grid (Hierarchy)

梦想与她 提交于 2020-06-17 09:32:08
问题 I use kendo grid in my asp.net core project v 2.1. I have 3 table person and wife and child. I want to use kendo with hierarchy tables. the primary table is person and the second table is wife or child. for filter the kendo grid I use kendo Filter component (not itself kendo grid filter). I add the first filter component for the primary table (person table) and it works fine. I want to add a secondary filter component for the wife table. how I should do this? plz, help me thanks. Picture 1:

Kendo MultiSelect make value to be selected and disable

不问归期 提交于 2020-05-31 10:08:07
问题 Need help here. I create a simple demo here and what I want to achieve from dataBound if checked='yes' node is selected and disable(apply k-state-disable) from edit. I try to set (selected,true) & (disabled,true) but seem it not working. DEMO IN DOJO <select id="multiselect"></select> $("#multiselect").kendoMultiSelect({ dataSource: { data: [ {id:1, Name: "John 1", checked: 'no'}, {id:2, Name: "John 2", checked: 'yes'}, {id:3, Name: "John 3", checked: 'no'}, {id:4, Name: "John 4", checked:

i want expand and collapse row on select in kendo grid for MVC UI

左心房为你撑大大i 提交于 2020-05-17 08:51:27
问题 i am trying to expand row on select and collapse same row on click by using Kendo Grid for Mvc UI ,, How to Check the CSS class of the arrow icon in the selected row - k-plus status ,, in the other words i would like to check if selected row is expanded or not. 回答1: Use this script: selectable: true, change: function() { let $row = this.select(); if ($row.length && $row.find('[aria-expanded="true"]').length) { this.collapseRow($row); } else { this.expandRow($row); } } It checks if the row is

Can't add new object to KendoUI grid if filter is applied to any column

安稳与你 提交于 2020-04-30 07:50:03
问题 I use KendoUI grid with popup edit mode. After applying filter to any column it is not possible to add new object correctly. Pressing Add button many times does not show edit popup. But after clearing the filter empty objects are shown in the grid. Is there any workaround? 回答1: I found a workaround. Instead of standard Add button use toolbar template in which add link "Add" with custom handler triggering grid add. In that handler check if filtering is used on grid and if so store current