kendo-asp.net-mvc

Why Is `data(“kendogrid”)` Undefined?

情到浓时终转凉″ 提交于 2019-12-12 08:47:01
问题 I'm a starter in kendo.ui, I've written this code to create kendo.ui.grid @(Html.Kendo().Grid<BrandViewModel>(Model) .Name("Grid") .Columns(columns => { columns.Bound(p => p.BrandName); columns.Bound(p => p.BrandAbbr); columns.Bound(p => p.SrcImage); columns.Command(command => command.Custom("Edit").Click("editItem")); }) .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("CustomCommand_Read", "Brand")) .Model(model => model.Id(p => p.Id)) ) ) When the user clicks the edit

How to bind Kendo stacked bar chart through Model

痞子三分冷 提交于 2019-12-12 06:17:41
问题 I am trying to bind a stacked kendo Bar chart Through MVC model ,but getting an error "cannot convert lambda expression to type 'double' because it is not a delegate type". @(Html.Kendo().Chart(Model) .Name("chart3") .Title(title => title .Text("Comments per day") .Align(ChartTextAlignment.Left) ) .Legend(legend => legend .Visible(false) ) .Series(series => { series.Column(new double[]{model => model.PerIdlingHours} ) .Labels(labels => labels.Background("transparent").Visible(true)); })

Bind a database table with Kendo Grid (MVC) using stored procedure, with large amounts of data with proper server side paging, sorting, filtering

此生再无相见时 提交于 2019-12-12 05:47:33
问题 We have a table with a large amount of data (in the millions of rows). We are using a stored procedure to fetch the records and binding that data with kendo grid using mvc approach. But we want to fetch only desired rows from table instead of getting the whole set of data in one go and then make filtering, sorting, paging options on that. Would it be possible to fetch only one page of rows at a time? Please help and suggest some approach. 回答1: First, you should have some paging logic inside

Telerik Kendo MVC Grid - How do I set onload/initial filter equals True with checkbox columns?

爷,独闯天下 提交于 2019-12-12 04:19:06
问题 I've been charged with changing my company's current webforms site pages to MVC. We use the Telerik tools package and I am looking for a way to set an initial filter on my grid so that when the page is loaded the grid defaults to showing only records that are checked (true). I have found several questions similar to this but so far none of the answers I have found in those instances dealt with checkboxes. The code below is my "Active?" = True/False column in the MVC grid. I'm checking the

Loop-generating Kendo DropDownListFor in jQuery doesn't initialize properly

十年热恋 提交于 2019-12-12 03:06:13
问题 I'm trying to create an Editor Template for a ViewModel and I see that Kendo controls are facing issues after being generated. Here is the ParkingServiceDetail.cshtml file: @model List<DA.Services.CarPark.Presentation.Web.Models.ParkingServiceDetailViewModel> <div id="@ViewData.TemplateInfo.HtmlFieldPrefix" style="margin-top:10px"> <table class="table table-bordered table-striped table-hover" id="grid"> <thead> <tr> <th data-field="TerminalId">Terminal</th> <th data-field="ServiceId">Service<

Data not showing in Kendo MVC Grid

人走茶凉 提交于 2019-12-12 02:58:25
问题 I've used Kendo Grid for showing data.It seems data is passed correctly because when I tracing my code in run time, I see there are some data in result but Kendo Grid couldn't show the data. How can I solve this problem? EDIT DESCRIPTION: I found cause of problem but I cannot solve it. If I remove this line in my ViewModel in QueryBuilder() method, Tags = article.ArticleTags.Where(c => c.ArticleId == article.Id).Select(b => b.Tag).Distinct().ToList() Grid show data but I need values of Tags.

How to Pass Kendo DropDownList DataTextField value to Controller

喜你入骨 提交于 2019-12-12 02:58:07
问题 I have a Kendo DropDownList on the View and I want to pass its DataTextField value to the Controller and then pass and them on the labels in another View . Although I can pass DataValueField values to the Controller , I cannot pass DataTextField values. I tried to apply different scenarios but I could not. Any idea? On the other hand, if it is not possible, should the DataTextField values be populated again on the Controller and return to the other View ? View: @model IssueViewModel ... @Html

KendoUI grid does not fire saveChanges event ( System.MissingMethodException: Cannot create an instance of an interface.)

折月煮酒 提交于 2019-12-12 02:57:21
问题 KendoUI grid does not fire SaveChanges event. I did not see any problem in Environment of Visual Studio 2013 and browsers(FF, IE, Chrome) when I run the project and clicked on SaveChanges button but SaveChanges event does not fire. For further investigation, I've used debugger of Chrome and I saw a problem. Please see the pictures of problem, error log and codes. (I've used JQuery v1.10) Please help me to solve it. EDITED: I understood that error has related with [Bind(Prefix = "models")]

Inline Editing is not working in Kendo MVC

♀尐吖头ヾ 提交于 2019-12-12 02:39:22
问题 Below is my .cshtml @using Kendo.Mvc.UI @model IEnumerable<WebApplication1.Models.DemoViewModel> @{ Layout = null; ViewBag.Title = "Home Page"; } <script src="http://code.jquery.com/jquery-1.11.1.js" type="text/javascript"></script> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.common-bootstrap.min.css" /> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.bootstrap.min.css" /> <link rel="stylesheet" href="http://kendo.cdn

Pagination does not work

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 23:50:20
问题 I've got a Kendo MVC Grid where the pagination does not work. It's loading the resultset in a single page, and clicking the page buttons does not do anything. The script files are loaded correctly and in the right order ( jquery-1.11.2.min.js , kendo.all.min.js and kendo.aspnetmvc.min.js ). I'm using Kendo UI version 2015 Q1 (2015.1.318.545). View @(Html.Kendo().Grid<MyModel>() .Name("Grid") .Columns(columns => { columns.Bound(c => c.Type); columns.Bound(c => c.Count); columns.Bound(c => c