kendo-asp.net-mvc

Using Kendo Grid in PartialView

强颜欢笑 提交于 2019-12-10 00:10:51
问题 I have two <section> in the Index view of my MVC application and I want to render two partial views in these sections. There is no problem rendering a Kendo grid to one Index. However, in order to render data on Kendo Grid, could I use the two methods returning Json in the controller as shown below. Could you give me an example how to achieve this? Controller: public ActionResult Index() { return View(); } public ActionResult Issues_Read([DataSourceRequest]DataSourceRequest request) {

Kendo Grid model with an IEnumerable property not updating correctly after Create/Update when using AJAX binding

空扰寡人 提交于 2019-12-09 17:46:39
问题 I'm having a problem where a property of my model is not being correctly updated when sending it to my controller for an Update or Create call from a Kendo Grid. The model looks like this: public class ReleaseNotesModel { public int NoteID { get; set; } public int ReleaseID { get; set; } public List<TranslationModel> ReleaseNoteTranslations { get; set; } public ReleaseNoteType ItemType { get; set; } } public class TranslationModel { public int TranslationID { get; set; } public string

Call a server side MVC action on the click of a Kendo UI button

五迷三道 提交于 2019-12-09 12:14:32
问题 I just download a trial version of v2013.3.1119.440 of the Kendo UI wrappers for ASP.NET MVC. I see a new Kendo.Mvc.UI.Fluent.ButtonBuilder wrapper in this version that wasn't in the version I had downloaded just 20 days ago on another PC. The said wrapper represents a button. I can't see a way to directly wire this Kendo.Mvc.UI.Fluent.ButtonBuilder wrapper with a server side MVC action. How do I do that? I do see the Events method on the ButtonBuilder class, which accepts a Action

How to achieve N-level nested hierarchy in Kendo UI Grid using ASP.NET MVC

一笑奈何 提交于 2019-12-09 06:22:26
问题 I am trying to implement N-level nested hierarchy in Kendo UI Grid using ASP.NET MVC i can implement specific number of Nested Grid but how to implement N-level nested Grid using a Specific Data in asp.net MVC @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.EmployeeViewModel>() .Name("grid") .Columns(columns => { columns.Bound(e => e.FirstName).Width(110); columns.Bound(e => e.LastName).Width(110); columns.Bound(e => e.Country).Width(110); columns.Bound(e => e.City).Width(110); columns.Bound(e

MVC bundeling : Err 403

二次信任 提交于 2019-12-09 02:24:01
问题 Using VS'12, Asp.net - C# - InternetApplication Template, KendoUI, EF Code First This is my MVC BundleConfig.cs bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); // The Kendo CSS bundle bundles.Add(new StyleBundle("~/Content/kendo").Include( "~/Content/kendo/kendo.common.*", "~/Content/kendo/kendo.default.*")); // The Kendo JavaScript bundle// or kendo.all.min.js if you want

Cannot export hidden columns in Kendo Grid

僤鯓⒐⒋嵵緔 提交于 2019-12-08 17:32:07
问题 I want to hide some columns on Kendo Grid and export them to the excel as the visible columns. However, using Hidden(true) or Visible(false) does not make any sense and these fields are not exported. The workarounds on this page is not working. Any idea? View: @(Html.Kendo().Grid<ContactViewModel>() .Name("Grid") .Columns(columns => { columns.Bound(m => m.NameSurname).Title("Name Surname").Width("%100"); columns.Bound(m => m.InstituteName).Title("Institute Name").Width("250px"); columns.Bound

Post the Kendo Grid Data on Form Submit

a 夏天 提交于 2019-12-08 16:16:38
问题 I want to Post the data from a Kendo Grid to the server, and save it to a database. For this I have used form like so: @using (Html.BeginForm("MainDocumentSave","Document")) { <div class="row-fluid"> <div class="span10"> @(Html.Kendo().Grid<Invoice.Models.ViewModels.SegmentViewModel>() .Name("Segment") .TableHtmlAttributes(new { style = "height:20px; " }) .Columns(columns => { columns.Bound(p => p.AirlineShortName).EditorTemplateName("AirlineEditor").Title("Airline").ClientTemplate("#

How to set columns dynamically in Kendo template

谁说我不能喝 提交于 2019-12-08 16:14:55
问题 How to set columns dynamically in Kendo template for kendo grid.In my kendo grid,columns are subject to change dynamically based on user preference.How to dynamically create Kendo Template?I am using Kendo JavaScript,I can switch to Kendo MVC if same thing i can achieve there.Is there any other approach to achieve this? <script id="rowTemplate" type="text/x-kendo-template"> <tr class="k-master-row"> <td> <div>#=column1#</div> </td> <td><span class="mydesign" title="column2#"</span></td> <td>

Change editRecurringMode dynamically on editable template in kendo scheduler

帅比萌擦擦* 提交于 2019-12-08 13:43:26
问题 I want to skip the Edit Recurring dialog(which content options for "edit series" and "Edit occurrence" ) in KendoUI Scheduler while editing the past recurring events, and in other cases the Edit Recurring dialog should not be skipped. example code: editable: function(e) { if(e.conditionisTrue) { editRecurringMode: "dialog" } else { editRecurringMode: "occurrence", }, template: kendo.template($("#myCustomEditorTemplate").html()) } Instead of: editable: { editRecurringMode: "dialog", template:

Kendo UI Window on grid button click does not open second time

谁都会走 提交于 2019-12-08 08:03:33
问题 im working on an MVC Kendo Ui project and i'm having the following problem: I have an editable kendo grid with a custom edit button wich opens a partial view on a kendo window wich acts like an "editor template". This seems to work fine first time but if i close the window and try to edit another item or even the same just does not work. I think that when i close the window this eliminate the elemment from the DOM but can't figure it out how to fix it. Here is some code: @(Html.Kendo().Grid