kendo-grid

Kendo UI Grid Filtering column with multiple values

寵の児 提交于 2020-01-13 18:12:09
问题 I have been using filters to successfully search on my KendoUI grids. However a new application has some fields that are multi-valued and my filtering doesn't work - it actually just seems to spin forever. An example of a multi-value field: field : "rspPersons", title : "Responsible Persons", type : "Text", template: "# var t=rspPersons.join(', ');data.tagsString=t; # #=t #" An example of my filter: orfilter.filters.push( { field : "chgDescription", operator : "contains", value : v1 },

Kendo UI reference not working in Razor view

二次信任 提交于 2020-01-12 13:57:15
问题 I am trying to create a Telerik Grid view but when I go to reference kendo it does not recognize it. Visual Studio is giving me an error when I try to reference kendo. This is the code @(Html.Kendo().Grid) and below is the error. 'System.Web.Mvc.HtmlHelper<dynamic>' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?) I have

Kendo UI reference not working in Razor view

人走茶凉 提交于 2020-01-12 13:56:31
问题 I am trying to create a Telerik Grid view but when I go to reference kendo it does not recognize it. Visual Studio is giving me an error when I try to reference kendo. This is the code @(Html.Kendo().Grid) and below is the error. 'System.Web.Mvc.HtmlHelper<dynamic>' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?) I have

Kendo Grid Not Saving Values After Moving to the next cell

折月煮酒 提交于 2020-01-11 11:29:30
问题 I have tried to modify the behavior of the InCell Edit Mode of kendo Grid. I mean i tried to navigate to cells using arrows but i have a problem in doing So. This is my code: $("#grid").keydown(function (e) { debugger; isEditStarted = true; var totlaColumns = $($(" #grid td")[0]).nextAll().length + 1; currentTD = $(" #grid td.k-edit-cell"); var indexx = $("#grid td").index($(" #grid td.k-edit-cell")); //currentTDIndex = $(currentTD).parent().children().index($(currentTD)) + 1; if

Kendo UI copying data through controls

别等时光非礼了梦想. 提交于 2020-01-11 06:43:09
问题 Is it possible to take 2 separate Kendo UI grids and be able to pass data back and forth through UI controls (like forward and backward arrows)? The pattern would would be to take the master list on the left, select items and have a refined list on the right. 回答1: If is possible and it is not hard to do but you have to do it by yourself so you need: Some knowledge on KendoUI Grid and DataSource and the events that they expose. Some knowledge on JavaScript + jQuery that help you with the

Databinding is not working with kendo grid in angular JS directives

南笙酒味 提交于 2020-01-07 09:05:14
问题 I am new to angular js and kendo UI. Here is my plunk Plunk I have a directive and want to bind data to the kendo grid. Script.js - code for module, controller and directive. (function(){ angular.module('app', ['kendo.directives']); angular.module('app').controller('MyCtrl',function($scope){ var data = { accountlist: [ {accountnumber: '123456', accountname: 'Firm 1'}, {accountnumber: '111111', accountname: 'Firm 2'}, {accountnumber: '1234567', accountname: 'Firm 3'}, {accountnumber: '1234568'

How do I load data into Kendo UI Grid using server side paging?

非 Y 不嫁゛ 提交于 2020-01-07 06:33:31
问题 I have the following code that builds a kendo ui grid: // build grid columns // the check box column is always visible for all users var columns = [{ field:'<input id="masterCheck" class="check" type="checkbox" /><label for="masterCheck"></label>', template: '<input class="check rowSelect" id="${id}" type="checkbox" /><label for="${id}"></label>', filterable: false, width: 33, sortable: false // may want to make this sortable later. will need to build a custom sorter. }]; // build the rest of

How do I load data into Kendo UI Grid using server side paging?

ⅰ亾dé卋堺 提交于 2020-01-07 06:33:06
问题 I have the following code that builds a kendo ui grid: // build grid columns // the check box column is always visible for all users var columns = [{ field:'<input id="masterCheck" class="check" type="checkbox" /><label for="masterCheck"></label>', template: '<input class="check rowSelect" id="${id}" type="checkbox" /><label for="${id}"></label>', filterable: false, width: 33, sortable: false // may want to make this sortable later. will need to build a custom sorter. }]; // build the rest of

KendoGrid - Adding & Removing the extra row is DUPLICATING the detailrows

拈花ヽ惹草 提交于 2020-01-07 04:27:08
问题 I wish to add one extra row into the detailRow to show a full description above the rows. But for some reason, when i click the expand or collapse indicator in the master row, it is generating the unwanted duplicate detail rows. Please suggest how to fix this issue. I am not sure, where i am getting wrong or missing something. Although, both functions are working fine in terms of adding & removing the extra row element. But not sure, why the detail rows are getting added again and again.

Pass kendo grid model in Ajax call

▼魔方 西西 提交于 2020-01-07 03:50:20
问题 I need to pass kendo grid model (on save event) to the server side in an ajax call. How can i do that? Tried the following function onSave(e) { var keys = Object.keys(e.values); var colName = keys[0]; var alignment; var mapHeaderId = $('#ddlMaps').val(); var yearId = $('#ddlYear').val(); $.get("@Url.Action("CalculateFormattingForResult", "Maps")", { studentId: e.model.studentid, colId: colName, value: e.values[colName], mapHeaderId: mapHeaderId, yearId: yearId, model: JSON.stringify(e.model)