kendo-grid

Cannot save a new row in kendo grid

时间秒杀一切 提交于 2019-12-11 19:33:08
问题 I have a problem with saving a new row to my kendo grid. When id is sent to the server it is 0. But when I try to change it on the server it is still 0. How can I fix this? I will be glad to any help with this issue. My Index.cshtml @{ ViewBag.Title = "Book List"; } @{ var defaultAuthor = ViewData["defaultAuthor"] as List<Number2.Models.AuthorViewModel>; var temp = defaultAuthor.FirstOrDefault().AuthorName as string; } <script type="text/kendo" id="authorsTemplate"> <ul> #if(data.Authors ==

Pass variable from kendo datasource to template

假如想象 提交于 2019-12-11 19:32:39
问题 I am trying to pass a string from the kendo datasource, into a template within the grid, that is acting as the Print button. The button fires a function that opens a new link to the report server, and I need to pass a string value into the function, so that string value is then sent in the url. I have it working if I send the datasource Id field, but if I try to send a string value (Physician), I get an 'Unexpected identifier' error. I have tried changing the coluns: field: to Physician, but

Kendo UI drop downs posting arrays

橙三吉。 提交于 2019-12-11 19:05:17
问题 Im using a Kendo UI listView with a template, how every when the form is submitted and the data is posted all dropdownlists are posted as an array. Thanks in advance!!! Heres my drop down lists in the template <input name="id_proof_clt" data-bind="value:id_proof_clt" data-value-field="value_opt" data-text-field="label_opt" data-option-label="Select" data-source="dsIdProof" data-role="dropdownlist" /> heres the array it posts id_proof_clt['id_opt'] id_proof_clt['category_opt'] id_proof_clt[

Make Command Button invisible in Kendo Grid

谁说我不能喝 提交于 2019-12-11 18:53:16
问题 I am new to kendo UI. In my code, columns are getting created as shown below. grid = $('#grid').kendoGrid({ columns: [ { width: 75, command: [{ name: "Tag", click: function (e) { try { } catch (ex) { alert(ex.message); } } }] }, { field: "Col18", title: "IsTag", width: 75 }, { field: "Col8", title: "System", width: 75 }, ], Now, in the databound, based on the value from datasource, they are changing the color of the row as show below. My issue is, if the color is green, I want to hide the

Kendo Grid validation message position issue

只愿长相守 提交于 2019-12-11 18:51:35
问题 The Kendo grid I developed has a validation message, but the arrow points to the column to the right. I cannot change anything in /kendo.default.min.css as this is located in a shared folder which should not be changed. Any help on this? dataSource: { data: data.ReportData, schema: { model: { fields: { ProposedDiscount: { validation: { required: true, proposeddiscountcvalidation: function (input) { if (input.val() != "" && input.is("\[name='ProposedDiscount'\]")) { input.attr("data

Kendo UI Grid - Filter with Select Multi-Checkbox

纵饮孤独 提交于 2019-12-11 17:51:52
问题 Problem is that when I choose multiple checkbox and filter for something all checkbox selected returns to normal all checkbox's (un-checked) my question is : Can I do the checked some checkbox's and filter for something without do any changes on my rows checked please check photos in below : 1 - Checked some rows 2 - filter some rows where contains 'ss' 3 - here my problem, after press ok on filter get rows without checked when i'm using kendo ui v.2018 see image please help me!! Thanks UW.

Kendo grid refresh issue in mobile

一世执手 提交于 2019-12-11 17:14:44
问题 I refresh the kendo grid for every 10 seconds, I used following code and I used the kendo.all.min.js $(document).ready(function () { loadData(); intervalManager(true, TableStatus, 10000); }); var TableStatus = function () { loadData(); } var refreshorderplacedgrid; function intervalManager(flag, animate, time) { if (flag) refreshorderplacedgrid = setInterval(animate, time); else clearInterval(refreshorderplacedgrid); } function loadData() { var grid = $("#grid").kendoGrid({ dataSource: { data

Cell click event only happens once in kendo ui grid

青春壹個敷衍的年華 提交于 2019-12-11 16:56:24
问题 I have a click event being bound to a cell, but the click event only fires once from the very first row, when I step through the dataBound event it attaches itself, but only fires the one time <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.3.1023/styles/kendo.default-v2.min.css" /> <script src="https://kendo.cdn.telerik.com/2019.3.1023/js/kendo.all.min.js"></script> <body> <div id=

How to retrieve additional data for grid row to edit only if user want to edit certain row?

左心房为你撑大大i 提交于 2019-12-11 16:19:21
问题 How to retrieve additional data for grid row to edit only if user want to edit certain row? In other words: grid is defined with datasource with f.e. 4 fields, but with pressing edit row I want popup to retrieve 50 more fields for this row, BUT after pressing update I want grid to show updated data (with this 4 fields) In other words: basic data for datasource for grid contain 4 fields/colums after clicking edit for row this datasource adds more fields to datasource for edit row. I know I can

Kendo Grid jumps to top after onSave

强颜欢笑 提交于 2019-12-11 16:14:17
问题 I have a grid that i need to set: scrollable: { virtual: true }, When users edit a cell then updates (or onSave(e)) their changes. The grid resets back to the top of the page. I don't know why. Users lose their place every time they try to change a cells contents. When i make scrollable: false, it stays put. I think this is a huge bug in Telerik Kendo. Has anyone figured out how to stay in place on the grid after saving changes? UPDATE This problem only occurs in IE 11. Unfortunately my