kendo-grid

Kendo Grid Save Changes

懵懂的女人 提交于 2019-12-25 02:44:17
问题 I have a kendo Grid that I make changes to and this saves to database. There is a button on the form that I submit additional information to a different database. I would like to check that the kendo grid has all changes saved when I click this button. If there are still some outstanding changes(red arrow in kendo grid) the user will have to save changes before proceeding. Can this be achieved with Javascript? 回答1: In the past I was able to determine if there were unsaved changes by reading

Error while implementing basic paging in Kendo UI Grid in ASP.NET

痴心易碎 提交于 2019-12-25 02:29:24
问题 I'm very new Kendo UI Grid,so please excuse me if it's dumb question. I'm trying to implement basic Kendo UI Grid in asp.net with paging functionality. But I'm getting error in kendo.web.min.js. Unhandled exception at line 13, column 15140 in http://localhost:63987/Scripts/kendo/2014.1.318/kendo.web.min.js 0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'slice'. This is line n._pristineData=e.slice(0) , here 'e' is object with 'Count' and 'Data'

First view data changes with second API call in angular

做~自己de王妃 提交于 2019-12-25 02:24:15
问题 I am having two views in one component. on left(view) and on right(view2). Left view is already called by API on ngOnInit, when I call second API for view2 , if also changes data in view1. https://stackblitz.com/edit/angular-kendo-2grid On edit service file: import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { HttpClient } from '@angular/common/http'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { tap } from 'rxjs/operators/tap';

KendoUI Grid parameters sending to a symfony2 app

↘锁芯ラ 提交于 2019-12-25 02:14:25
问题 I am using a KendoUI grid with serverpaging, I am also using symfony2 in the server side, I have created the routing for handle the request: _callsList: pattern: /callsList/{id_client}/{take}/{skip}/{page}/{pageSize} defaults: { _controller: StoreBundle:Voip:callsList, take: 20, skip: 0, page: 1, pageSize: 20 } This is my definition of the grid: $("#grid").kendoGrid({ dataSource: { type: "json", transport: { read: "{{url('_callsList', {'id_client': 3, 'take': 20, 'skip': 0, 'page': 1,

KENDOUI: Grid Popup Edit with datePicker Plugin not updating its time value

余生颓废 提交于 2019-12-25 02:13:32
问题 I've got a Kendo ui grid within my web application. I can directly create a new dataset with popup editing. A given field is usable as datePicker. My Problem is, if I logon to my webapplication @ 8 a.m. and click on the create data button in the afternoon the field is populated with 8 a.m. how can I force the datePicker to refresh, if I call the create function from the toolbar of my grid? 回答1: Okay I found the solution. May it will help someone else out. You can use the edit function from

Custom Filter in kendo grid passing null values when usign serevr side filtering

核能气质少年 提交于 2019-12-25 02:06:52
问题 I am using kendo Grid Server side filtering.All columns are working fine,I have a columns named purchase date.I have used here custom filtering using Date Picker as shown below.But while filtering value of datePicker in not passing to server side..Please suggest field: "purchase_date", width: "120px", title: "Purchase Date", template: '#= kendo.toString(purchase_date, "MM-dd-yyyy") #', filterable: { ui: function (element) { element.kendoDatePicker(); // initialize a Kendo UI DateTimePicker },

Wrong currency unit in Kendo

你。 提交于 2019-12-24 15:08:41
问题 In my website I use the Kendo-grid. In that grid, there is a column "Amount" with these values: You see that there are dollar-signs before the amounts, but I want euro-signs. The globalization-culture settings are correct, because when I show an amount outside the grid, it shows me the amount with a euro-sign. I'm developing this website with ASP.NET MVC5. In my model I have this property: [DisplayFormat(DataFormatString = "{0:c}")] public decimal Amount { get; set; } You see that I format my

Kendo UI grid: refreshing grid data every 60 seconds with new data: dataSource and observe()

為{幸葍}努か 提交于 2019-12-24 14:15:17
问题 I want to refresh the Kendo UI grid's contents every 60 seconds with up-to-the-minute data. EDIT: Here's how the dataSource is being assigned at initial configuration: parsedData = $.parseJSON(data); var dataSource = new kendo.data.DataSource({ data: parsedData }); $("#grid").kendoGrid({ dataSource: dataSource, . . . Can the grid's dataSource simply be reassigned in one fell swoop? Or would it be better to remove the items in the dataSource.data individually, or by clearing the array, and

How to add in KendoUI MVC Grid a thousand comma separator

浪子不回头ぞ 提交于 2019-12-24 12:51:24
问题 I want to display 1000 like 1,000 in Grid (Must have commas). Initial data type is string. I need thousand comma separator. I have the same questions as in How to change display format of long variable?. But my data type is string. In this topic they did not have clear answer for KendoUI MVC Grid for thousand comma separator. I have KendoUI Grid @(Html.Kendo().Grid((IEnumerable<MyApp.Models.MyModel>)ViewBag.QualReq) .Name("MyGrid") .Columns(columns => { columns.Bound(p => p.Actual); })

Export to PDF with Chinese languages

跟風遠走 提交于 2019-12-24 12:35:11
问题 I had a Grid that contain a chinese language. The problem occur when I want to export the data into PDF. It seem appear a weird characters (image below) or something like this . Can anyone help me to solve the issue? Here I provide a DEMO in dojo 回答1: Found a solution, using kendo.pdf.defineFont I need to download Arial Unicode MS font then place into a folder. By using defineFont I used this code. <script> kendo.pdf.defineFont({ "Arial Unicode MS" : " +your url path+ / +font folder location+