kendo-grid

Microsoft JScript runtime error: 'data.EmployeeDetails.EmployeeId' is null or not an object`

时间秒杀一切 提交于 2019-12-13 21:23:52
问题 HI I am stuck in getting data that i need to display in kendo UI GRID , Initially I am able to see the button and textbox and grid as well but when i enter the value in textbox and then press the button i need to show that entered values in kendo UI GRID ... When I run this application in google chrome it was giving empty grid,after enters the value and then press the submit button but when I run this one in IE8 it was giving error like this at starting stage itself.... Unhandled exception at

Cannot update value in Kendo-grid - cannot read 'data' property of undegined

坚强是说给别人听的谎言 提交于 2019-12-13 19:51:19
问题 I am updating Kendo-grid when the selected value in option HTML element is changed. But when I try to update the value in the grid inline in the browser's console is printed "kendo.web.min.js:13 Uncaught TypeError: Cannot read property 'data' of undefined". What Did I wrong? < script > $(document).ready(function() { // on changing zone option selector $('#SelectProviderZoneForPrices').change(function (e) { var zoneId = $(this).val(); var productId = $('#SelectProviderForPrices').val(); $.ajax

kendo Grid grouping incompatibility with row template

左心房为你撑大大i 提交于 2019-12-13 19:09:02
问题 When I'm using other "groupable" row template doesn't work in the kendo grid But before there was no problem and now how to use the grouping together of row template I put the code I wrote in a review do jsfiddle : Click here to check with jsfiddle <script> $(document).ready(function () { var ds = new kendo.data.DataSource({ transport: { read: { url: '/api/clientssnapshot', dataType: 'json', type: 'get' } } }); $('.table').kendoGrid({ dataSource: ds, sortable: true, groupable: true,

Kendo grid - adding column from nested dictionary

混江龙づ霸主 提交于 2019-12-13 18:05:41
问题 [Serializable] public class ContactDto { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string CompanyName { get; set; } public Dictionary<string, string> CustomFields { get; set; } } I have the contactdto class above with a dictionary of customfields. Those can be anything 'MotherName' 'Birthdate' etc. How do i display the custom fields as columns in the kendo grid? All the contactDTO's will have the same dictionary keys. I am

Kendo MVC: Adding Edit, Delete Buttons to Grid

懵懂的女人 提交于 2019-12-13 16:29:29
问题 Assuming I have the below table: @Html.Kendo().Grid(Model).Name("Staff").Columns(x => { x.Bound(y => y.StaffId); x.Bound(y => y.FirstName); x.Bound(y => y.LastName); x.Bound(y => y.Email); x.Bound(y => y.Phone); x.Command(y => y.Custom("Edit").Action("edit", "controller", new { id = ????? })); }).Sortable().Scrollable().Pageable(x=> x.PageSizes(true)).Filterable() How can I pass the primary key value (StaffId in this case) associated to the row to the object route values similar to the way it

Does document.execCommand('copy') have a size limitation?

只谈情不闲聊 提交于 2019-12-13 13:05:05
问题 I am using document.execCommand('copy') similar to what is described here: https://developers.google.com/web/updates/2015/04/cut-and-copy-commands In my case, I'm placing data from a Kendo grid into a hidden textarea to be copied. Somewhere between 2500 and 3000 rows, or around 350k of data, the copy fails. I've unhidden the textarea to make sure it's getting the full contents of the grid, and that is working. I can copy all 3000+ rows manually from the visible textarea. But document

Kendo UI Grid Data variable Vue.js

我们两清 提交于 2019-12-13 09:34:38
问题 In the kendo UI it is possible to load the grid with data from a variable in the Vue.js? 回答1: Yes, instead of using a data-source-ref, you can bind to a data-source property. This can be an instance of an kendo DataSource or a simple array. For example, here's the default demo, changed to bind to an array of objects. var products = [{ "ProductID": 1, "ProductName": "Chai", "UnitPrice": 18, "UnitsInStock": 39, "Discontinued": false }, { "ProductID": 2, "ProductName": "Chang", "UnitPrice": 19,

Produce another pop up based on selected dropdown

若如初见. 提交于 2019-12-13 09:04:31
问题 I am using Kendo UI pop up(template). I have dropdown here. In my demo, I already have the pop up 1. So, right now I want to make if test1 selected, should be other for popup for test1. Other than that, do not happen anything. Is it possible to do that? I'm really need help here. Thank you, please see my demo below. My demo here using jsfiddle : http://jsfiddle.net/ak6hsdo8/2/ HTML <div id="grid"></div> <!-- Kendo popup template --> <script type="text/x-kendo-template" id="popup_editor"> <p

How to select kendo grid row if that row is not present on first page of the kendo grid./

我只是一个虾纸丫 提交于 2019-12-13 08:49:50
问题 Tried to select a kendo grid row in dataBound (Note: that row is not on first page of the grid) but it didn't selected 3rd page row. dataBound: function(e) { if (id!== "" && id!== undefined && id!== null) { var grid = e.sender; grid.select("tr:contains('" + id + "')"); } }, Here id is in the page URL and getting ids value like below: and that will get passed in dataBound id var. id = $location.search().id; Any ideas how i can select the 3rd page row? Above logic works for the rows that are

Kendo UI Grid: Hide column when initialize from HTML table?

梦想的初衷 提交于 2019-12-13 07:53:26
问题 $(document).ready(function() { $("#grid").kendoGrid({ height: 550, sortable: true }); }); <link href="http://kendo.cdn.telerik.com/2014.1.318/styles/kendo.common.min.css" rel="stylesheet"/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="http://kendo.cdn.telerik.com/2014.1.318/js/kendo.all.min.js"></script> <div id="example"> <table id="grid"> <colgroup> <col /> <col /> <col /> <col /> <col /> </colgroup> <thead> <tr> <th data-field="make"