kendo-grid

Kendo grid change event fires only once per row selection

﹥>﹥吖頭↗ 提交于 2019-12-11 09:59:25
问题 In a MVC4 project, I've got a kendo grid that fires an event when a row is selected. <div id="datagrid"> @(Html.Kendo().Grid<SustIMS.Models.StretchModel>() .Name("datagrid_Stretches") .Columns(columns => { columns.Bound(s => s.StretchCode).Title(ViewBag.lblCode).Width(80); columns.Bound(s => s.StretchMediumDescription).Title(ViewBag.lblDescription); ... }) .Events(e => e.Change("onChange")) <--------- here's the event .DataSource(dataSource => dataSource .Ajax() .PageSize(15) .Read(read =>

How to update a Kendo Grid dataSource to a remote url, but without triggering an ajax call?

徘徊边缘 提交于 2019-12-11 09:37:58
问题 Take a look at my fiddle here Unfortunately Kendo Grid doesn't seem to provide a native solution to good SEO (see here). But I thought I would give it a try, and see if there is anything I can do. This is what I have so far: To achieve a proper progressive enhancement approach with Kendo Grid, I have 3 parts: Pre-existing HTML table for SEO purposes ( see html section of fiddle ) The same data from the HTML table, but as JSON ( see top of js section of fiddle ). This is so Kendo will show the

Kendo Grid - Child Navigation Binding Issues

爷,独闯天下 提交于 2019-12-11 09:06:34
问题 I am trying to call a web api method and return this data to a kendo grid and display this data in my grid. The model that is returned from my web api method has navigation properties that have other objects, and I am just trying to display these navigation elements in my grid using a kendo template. However, I am having problems with it not being able to detect that the navigation property exists, even though I can see it when I debug. //schema for my kendo data source schema: { data:

Model Binding fails with Kendo Grid

心不动则不痛 提交于 2019-12-11 09:03:33
问题 I can't use edit and create command of a Kendo Grid, because binding always fails and controller always receives a null object, even though DataSourceRequest is fine. I used a @html.EditorForModel() and it worked fine and controller received the data. So MVC Model binding and my class aren't the problem. Also, using F12, I can see the data being posted and it's fine too. Any Idea about possible problem and debugging? There is an issue with all of my Kendo Grids, sometimes they post a model

How to know what columns are visible whit Kendo Grid MVC

独自空忆成欢 提交于 2019-12-11 07:55:37
问题 i have a Kendo Grid whit "x" number of columns, but the user can hide the columns and i need know what columns are visible to export data only for these columns, i access to the columns in JS whit var columns = $("#grid").data("kedoGrid"); but it returns all columns not only the visibles. tankz 回答1: You can just get the list of columns by using this: var columns = $("#grid").data("kendoGrid").columns; The result will be an array of all column objects which has a property name hidden: true for

Why The DropDown list template of kendo ui sample for ASP.NET MVC 5 dont run right?

拥有回忆 提交于 2019-12-11 07:51:01
问题 I use dropdown template for kendo ui Grid.this example was for ASP.NET MVC but when click on the dropdown, it display ID and Name that is not dropdown. I copied and replaced the code but instead of dropdown that display Id input and Name input. the link of this example is: https://demos.telerik.com/aspnet-mvc/grid/editing-custom my editing_custom.cshtml: @using Microsoft.AspNet.Identity.EntityFramework; @using UserManagerSample.KendoDropDown.KendoDropViewModel; @using Kendo.Mvc.UI <script src

Unable to format date with KendoUI Grid and Knockout-Kendo

[亡魂溺海] 提交于 2019-12-11 07:24:25
问题 I am having trouble getting a date to parse with the Kendo Grid. I am using Knockout-Kendo to assist with the data-bindings. The date-string in the json response that I am attempting to parse looks something like 2012-03-13T00:00:00 . The column definition for the Kendo grid contains format: '{0:MM/dd/yyyy}' which seems to work on another grid that isn't using Knockout-Kendo to parse the exact same date string. I have created (well re-using from a separate question) a jsFiddle that

Set the selected text or value for a KendoDropDownList

╄→尐↘猪︶ㄣ 提交于 2019-12-11 06:58:10
问题 I'm using Durandal and Kendo UI. My current problem is the edit popup event on my grid. I cannot seem to set the selected value on my dropdown. I can debug and inspect, and I indeed do see the correct value of e.model.InstrumentName nicely populated. How can I set the value/text of those dropdowns in edit mode ? Here's my grid init: positGrid = $("#positGrid").kendoGrid({ dataSource: datasource, columnMenu: false, { field: "portfolioName", title: "Portfolio Name", editor:

Kendo Grid multi column group based on object array

前提是你 提交于 2019-12-11 06:03:22
问题 I am relatively new to MVC (and Kendo ) but I have managed to setup a grid which contains multi column headers using the columns.Group functionality. @(Html.Kendo().Grid<Result>() .Name("myGrid") .Columns(columns => { columns.Bound(c => c.ResultDateTime).Title("Date Time"); foreach (Lot Lot in (Lot[])ViewBag.Lots) { columns.Group(group => group .Title(Lot.LotNumber) .Columns(info => { info.Bound(Lot.Result.Count.ToString()); info.Bound(Lot.Result.Mean.ToString()); info.Bound(Lot.Result.SD

Kendo UI grid toolbar template Dropdown Error

安稳与你 提交于 2019-12-11 05:49:22
问题 Reference1 Reference2 I've encountered some other issues prior to getting to this stage and those are detailed in the Referencea link, anyway main problem is after finally getting the dropdown (Reference2) to display it, unfortunately doesn't actually connect to the controller action which should fill it with no obvious answer why. The only error which seems to indicate anything is:- TypeError: r is undefined kendo.web.min.js Line 13 The present code I'm using for the dropdown is:- <script