kendo-grid

Kendo UI Grid Update unable to deserialize JSON into IEnumerable<ViewModel> results in ArgumentException Invalid JSON primitive

大城市里の小女人 提交于 2019-12-13 02:41:42
问题 I am using Kendo UI feature Grid and trying to implement batch Update functionality. Here is what I have done so far: $(document).ready(function () { ("#grid").kendoGrid({ dataSource: { type: "json", transport: { read: function (options) { $.ajax({ url: "IndicatorService.svc/GetIndicators/" + speedID, dataType: "json", success: function (result) { options.success(result); } }); }, update: function(options) { $.ajax({ type: "POST", url: "IndicatorService.svc/UpdateIndicators", dataType: "json"

Adding View or Button Link to Kendo Grid

二次信任 提交于 2019-12-13 02:18:59
问题 After a bit of a struggle I've managed to bind my model to a Kendo Grid in my MVC app. What I want to do now is add either a Html.ActionLink or a button at the end of each row so that when clicked it opens a new browser window with the details page for the selected person. My Grid code is such: @ModelType CDB.GridDetail @Code Dim myGridData As IQueryable(Of Person) = Model.GridDetailPersons Html.Kendo().Grid(Of Person)(myGridData) _ .Name("Grid") _ .Columns(Sub(c) c.Bound(Function(s) s

KendoUI - How to create controls at runtime based on user input?

心不动则不痛 提交于 2019-12-13 02:06:42
问题 Is there a way to create different type of controls in a KendoUI grid column at runtime? The scenario is, I have 2 columns in my grid. The first column displays a dropdown list which has the some strings like, 'Name', 'StartDate', etc. When user selects a value from it, I want to show an appropriate control in the 2nd column. If the user picks 'StartDate', I want to show the 'DateTime' control. Can you please let me know how to do this thru ASP.Net MVC 5 wrapper? Sample Code: @(Html.Kendo()

Add title to kendo ui grid

别等时光非礼了梦想. 提交于 2019-12-13 01:07:00
问题 After researching on the web, i´m facing a problem on adding a title into my grid, so my code is: .html file: <div id="idGridTiposQuartos" class="gridtiposquartos js-var-grid-tipos-quartos"><div id="gridTiposQuartos"></div></div> .js file: $("#idBtnTiposQuarto").click(function() { $("#idGridTiposQuartos").fadeIn(1000); $("#idBtnQuartos").attr("disabled", false); $(".k-grid-toolbar", "#gridTiposQuartos").before("<h1>hello</h1>"); $(".k-grid-toolbar", "#gridTiposQuartos").after("<h1>hello</h1>"

Inline editing with conditionally disabled controls

喜欢而已 提交于 2019-12-12 18:49:35
问题 I am using the Telerik Kendo UI grid. I have configured it to use grid inline editing. I have an interesting requirement. One of the columns is a checkbox and this defines whether some of the controls are editable or not. i.e when ticked columns E,F,G are read-only and others are editable. When unticked column B,C are editable and others are read-only. I have successfully implemented this but I would like to improve it. I have implemented it so that the controls are disabled. However, I would

KendoGrid/Angular: cannot create grid columns/data dynamically

此生再无相见时 提交于 2019-12-12 16:18:18
问题 In this plunk I have an empty grid (without columns). When I click on "Build Grid" I need to add columns (taken from an array) and also add a row to the table. The problem is that the columns are not added to the grid, any ideas? If I try to refresh the grid, I get an undefined error. HTML: <button ng-click="buildGrid()">Build Grid</button> <div kendo-grid="grid" k-options="gridOptions" k-data-source="ds"></div> Javascript: var app = angular.module("app", [ "kendo.directives" ]); function

How to change pageable messages of kendo grid in razor?

好久不见. 提交于 2019-12-12 14:36:04
问题 I found in javascript but i could't manage to do it. Can anyone say how "display" will be in razor? pageable: { messages: { display: "{0} - {1} of {2} items", //{0} is the index of the first record on the page, {1} - index of the last record on the page, {2} is the total amount of records empty: "No items to display", page: "Page", of: "of {0}", //{0} is total amount of pages itemsPerPage: "items per page", first: "Go to the first page", previous: "Go to the previous page", next: "Go to the

Kendo UI Grid is not calling READ method

大兔子大兔子 提交于 2019-12-12 12:24:34
问题 As per the requirement, I am having a Kendo UI grid on my VIEW.But sadlyy, the read function is not being hit in the controller.This is annoying ,I am getting the same problem even though everyhting seems to be as per the documentation provided on http://demos.kendoui.com/web/grid/index.html. Here is my View code: @(Html.Kendo().Grid<StudentManagement_Models.Student>() .Name("studentsGrid") .Columns(columns => { columns.Bound(p => p.Id).Groupable(false); columns.Bound(p => p.FirstName);

Kendo toolbar AddNew button doesn't work when the grid is filtered

一曲冷凌霜 提交于 2019-12-12 11:44:35
问题 I have a small Kendo Grid, set up as below. In an inccredibly mysterious fashion, the Controller action for "Add New", i.e. BatchCreate is only invoked if when you click another command button after clicking "Add New". E.g. a) Click "Add New", nothing at all happens. b) Reload the page, and click "Add New", and have nothing happen, then click "Save Changes", then the BatchCreate method is finally invoked. My grid looks like this, copied nearly straight from an example of theirs: @(Html.Kendo(

How to order a Kendo Grid checkbox column filter when multi and columnMenu are both true?

我的未来我决定 提交于 2019-12-12 11:24:17
问题 Using a Kendo UI grid, you can set the column as "filterable: { multi: true}", which generates a nice checkbox list in the filter instead of the default text box and equality operator template. The problem, is that by default the items in the checkbox list are ordered with the dataset, which itself is probably ordered by some other field. Kendo docs explains how to filter a column when the "filterable: { multi: true}", but it only works when columnMenu is false. Column menu is another option