kendo-ui-angular2

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 =

Binding for kendo DatePicker (The 'value' should be a valid JavaScript Date instance)

故事扮演 提交于 2020-06-27 07:37:55
问题 Binding for kendo DatePicker has an error. The 'value' should be a valid JavaScript Date instance my web api in asp core to get a student is : [HttpGet, Route("/api/master/{id}")] public JsonResult GetStudentById(int id) { return Json(new { id = 1, RegisterDate = DateTime.Now }); } it returns : {"id":1,"registerDate":"2018-05-01T13:23:35.1229748+04:30"} and finally in my angular component is : student: Student = new Student(); constructor() { } ngOnInit() { this.http .get(`http://localhost

Binding for kendo DatePicker (The 'value' should be a valid JavaScript Date instance)

纵然是瞬间 提交于 2020-06-27 07:37:21
问题 Binding for kendo DatePicker has an error. The 'value' should be a valid JavaScript Date instance my web api in asp core to get a student is : [HttpGet, Route("/api/master/{id}")] public JsonResult GetStudentById(int id) { return Json(new { id = 1, RegisterDate = DateTime.Now }); } it returns : {"id":1,"registerDate":"2018-05-01T13:23:35.1229748+04:30"} and finally in my angular component is : student: Student = new Student(); constructor() { } ngOnInit() { this.http .get(`http://localhost

How to clear data on kendo ui angular 2 grid

孤街醉人 提交于 2020-01-23 17:02:07
问题 I'm looking for a way to clear the Kendo UI Grid for Angular 2 if the user navigates another page or simply logout. I have tried clearing the observable to null and it is not good and i couldn't fill data after all. Can anyone suggest me a better way? 回答1: You can set the view to empty array using either =Observable.empty() or =Observable.from([]) but you will need to rebind the service back again if you want to fetch data. This is why the easiest way will be to just call .next([]) and then

Kendo UI for Angular 2: Excel export having multiple worksheets

左心房为你撑大大i 提交于 2020-01-16 18:28:12
问题 I'm trying to implement an excel-export having multiple worksheets. I was not able to get a solution (example) on the Kendo page itself. In the API documentation I found the possibility to access to the workbook options. How can I create an excel having 2 or more sheets? Currently I'm trying it using a simple example from the Kendo page: https://www.telerik.com/kendo-angular-ui/components/excelexport/ 回答1: Using the example provided in the Kendo Demo, you can create an ExcelExportComponent

how to add callbacks to kendo dialog actions

折月煮酒 提交于 2020-01-14 01:59:27
问题 I've tried using the Kendo UI DialogService to call up my own component in a dialog. The issue I'm having is in using custom actions for my dialog. Including an ng-template with custom buttons and actions somewhat defeats the purpose of using the dialogService and clutters my template with markup not directly related to it. I've tried using code like this: const saveAction = { text: 'Save', primary: true }; const cancelAction = { text: 'Cancel' }; const dialog = this.dialogService.open({