kendo-ui

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: "#" }, {

Angular6 open/show component by service

与世无争的帅哥 提交于 2020-07-22 05:52:09
问题 I built an angular component to use as a dialog for my app (e.g to show application errors) and a dialog- service to open/show that dialog from other components. dialog.component.html <kendo-dialog *ngIf="opened"> <div> Some Content </div> </kendo-dialog> dialog.compontent.ts import { Component, OnInit } from '@angular/core'; import { Dialog } from './dialog'; // Model @Component({ selector: 'dialog', templateUrl: './dialog.component.html', styleUrls: ['./dialog.component.scss'] }) export

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 Upload - CSRF Token with kendo ui jquery

家住魔仙堡 提交于 2020-07-09 17:57:12
问题 how to add CSRF Token in kendoUpload $("#image").kendoUpload({ async: { saveUrl: "http://url", } }); 回答1: <meta name="_token" content="{!! csrf_token() !!}" /> <input type="file" name="files" id="photos" /> var token = $('meta[name="_token"]').attr('content'); $("#photos").kendoUpload({ async: { saveUrl: "http://url/save" }, upload: onUpload }); function onUpload(e) { var xhr = e.XMLHttpRequest; if (xhr) { xhr.addEventListener("readystatechange", function (e) { if (xhr.readyState == 1 /*

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 =

Icons not showing in my KendoUI for JQuery Grid

安稳与你 提交于 2020-06-27 15:50:11
问题 I have a KendoUI for JQuery grid, and as you can see in the screenshot below, all of the paging icons are not showing. I have added the necessary stylesheet references. And I have made sure that the stylesheets themselves and the .PNG files referenced in them are in my solution. When I run the solution, I use Google Chrome. At this point, I am at a loss as to what I'm doing wrong. If anyone knows anything, please help. 回答1: I do not see the required fonts folder: \kendo\fonts \kendo\fonts

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: