kendo-asp.net-mvc

e.slice is not a function error in ASP.NET MVC with Kendo UI

淺唱寂寞╮ 提交于 2019-12-10 23:59:20
问题 I am working on asp.net MVC with Kendo UI grid. I am getting the information from a method and give it to the grid. and I have in toolbar a datepicker so when I pick a new date the code will go to the method refilter the LINQ then I received a new list. I wrote this code: public ActionResult Grid_ReadLogAdminList([DataSourceRequest] DataSourceRequest request,[Bind(Prefix = "id")] string date) { //both the date and result is correct always var jsonResult = Json(result, JsonRequestBehavior

Kendo Template check box not firing click event

爷,独闯天下 提交于 2019-12-10 23:59:07
问题 I have used Kendo Template as follows: <script type="text/javascript" src="@Url.Content("~/Scripts/Module/Analysis/CreateMaintainAnalysis.js")"></script> <script type="text/x-kendo-template" id="Modeltemplate"> <div class="section group fr"> <div class="col span_2_of_12"> #if(ACTIVE_MODELS_COUNT > 0){# <input class="ModelCheckBox" type="checkbox" checked/>#} else {# <input class="ModelCheckBox" type="checkbox" unchecked/> #}# </div> <div class="col span_4_of_12"><label>#:MODEL#</label></div>

Kendo UI DropDownList on change to trigger event

﹥>﹥吖頭↗ 提交于 2019-12-10 19:48:47
问题 I'm using Kendo UI for the first time and am having some difficulty triggering a function on my Kendo dropdownlist change. My goal here is to show different search fields depending on the user's drop down selection. I have tried this a few different ways, and nothing seems to work. Does anyone have a simple jQuery snippet that would get the text of the Kendo UI dropdown? My code is as follows: <script> $(document).ready(function () { var a = $("div#searchbox span.k-input").text(); console.log

Adding a Dropdown inside Kendo Grid

邮差的信 提交于 2019-12-10 19:28:15
问题 I'm trying to add a DropDown inside kendo grid but it displays a TextBox @(Html.Kendo().Grid((IEnumerable<Doc.Web.Models.Vendor.DocumentsDetails>)Model.documents_lst) .Name("grid").Scrollable() .Columns(columns => { columns.Bound(o => o.DocumentRevisionID).Visible(false); columns.Bound(o => o.Documentnumber).Title("Document #").Width(150); columns.Bound(o => o.Revision).Title("Revision").Width(80); columns.Bound(o => o.RevisionDate).Format("{0:dd/MM/yyyy}").Title("Rev Date").Width(85);

MVC - How to ModelBind a list an objects with this unusual post data format?

最后都变了- 提交于 2019-12-10 18:16:50
问题 Normally when you ModelBind a list of objects with MVC, the action looks like so: public ActionResult Hello(List<DocumentViewModel> viewModels) { And the Post data looks something like: [0].Id 1 [0].Name Bob [1].Id 2 [1].Name Jane But, how could I get the following post data to work? 0[Id] 1 0[Name] Bob 1[Id] 2 1[Name] Jane The Post data is being provided by Kendo UI, so I don't imagine I have much flexibility to change it. Update Thanks Petur for the answer. To expand on his answer, this

How do I refresh a Kendo UI combo box?

此生再无相见时 提交于 2019-12-10 13:44:23
问题 I have an ASP.Net MVC Kendo UI combobox that is databound to a table with 1000's of records. I've set the MinLength property to 5 so I only return relevant results. The problem is, the user might need to change the text value all together. Is there a way to tell the control to refresh? Here's the code for the control... @(Html.Kendo().ComboBoxFor(x => x.Product) .Name("Product") .DataTextField("Name") // Display value .DataValueField("Id") //Return value .MinLength(5) .AutoBind(false)

Kendo DropDownListFor() with ASP.NET-MVC

心已入冬 提交于 2019-12-10 13:24:07
问题 i have a problem into the ASP.NET-MVC Helper I have a form that give a POST into action **create of the controller Occurrence passing a parameter of type occurrence that corresponding at the Model of the view where the form is inserted, for register the occurrence is needed an TypeOccurrenceID , i'm trying to get this value using Html.DropDownListFor() , but this not working when the form is posted, the Occurrence past in the parameter don't have the OccurrenceTypeId corresponding with the

In MVC How to pass a parameter to tabStrip when I was using Partial Views?

血红的双手。 提交于 2019-12-10 11:44:56
问题 In my view page, I have a button. When I click the button, I want to make the window open. The window has some tabstrips, and in the tabstrip I want to show a grid and pass a parameter to the grid. Does kendo UI allow me to do this? Kendo Window -- How to pass a parameter to the _TabStrip from my main view?(like the parameter is "paraA" string) @(Html.Kendo().Window() .Name("window") .Title("About Alvar Aalto") .Content(@Html.Partial("_TabStrip").ToHtmlString()) .Draggable() .Resizable()

Asp.Net CPU issue working with Kendo UI treeview after Visual Studio 2013 Update 2

限于喜欢 提交于 2019-12-10 10:55:28
问题 I'm developing Asp.Net MVC website using Kendo UI. Installed Visual Studio 2013 Update 2 RTM and got CPU issue on IIS (CPU >= 30%). http://c2n.me/i7juKB.png After an hour of searching issue, found that the problem is in Kendo UI Treeview with hierarchical data. Kendo Treeview Asp.Net MVC wrapper code: @(Html.Kendo().TreeView().HtmlAttributes(new { style = "height:150px;" }) .Name("treeview-library-country") .Events(events => events.Select("common.onTreeViewSelect").Collapse("common

How to add DatePicker in ClientTemplate for Kendo MVC Grid

≯℡__Kan透↙ 提交于 2019-12-10 10:14:09
问题 I am trying to port my code from syncfusion to telerik kendo MVC UI, I need to show Datepicker in Grid cell, and for which I have done in grid column as: columns.Add("TemplateCol").Title("Out of date").TemplateColumn(true).TemplateName("TemplateOutOfDate"); and for TemplateOutOfDate I have made in seperate .cshtml file as @Html.Syncfusion().DatePicker("OutOfDate" + Model.ID.ToString(), Model.OutOfDate).DefaultDate(Model.OutOfDate).DisplayDefaultDateOnLoad(true).DateFormat(Model