kendo-asp.net-mvc

In MVC ,Html Kendo Grid is not passing “&” to the controller from view through Datasource

只谈情不闲聊 提交于 2019-12-11 21:51:32
问题 Kendo grid datasource is not passing values "&" from view to controller in MVC For instance from the below code if testIdVal value is "Interface Class & Function" . Only "Interface Class" are being passed to the controller . .DataSource(Function(d) d.Ajax() _ .Read(Function(read) read.Action("GetResourcesForRolesForRootDomain", "Inquiry", New With {.testId= "#=testIdVal#"}).Type(HttpVerbs.Post).Data("additionalData"))) _ 回答1: Two ideas on that one: Try to add encodeURIComponent around

Kendo grid sort by nullable property

我的未来我决定 提交于 2019-12-11 20:47:02
问题 I am using a html helper for Kendo grid to display some data. The model used by the grid has a DateTime nullable property and I want to display the items in grid sorted descending by myDateTime property, with the null values first. I've managed to display them ordered descending, but the null values are displayed last. Any ideas how could I display the null values first and then the descending sorted values? @(Html.Kendo().Grid<MyVm>() .Name("myGrid") .Columns(columns => { columns.Bound(m =>

Accessing List members in ViewData

与世无争的帅哥 提交于 2019-12-11 20:16:24
问题 I'm passing a list in ViewData . How can I access a specific member, for examples the first item? I want to specify the default value of a dropdownlist . This is my current Template: @(Html.Kendo().DropDownListFor(m => m) .DataTextField("Text") .DataValueField("Id") .BindTo((System.Collections.IEnumerable)ViewData["units"]) ) And what I'm looking for is something like: ViewData["units"][0].Id 来源: https://stackoverflow.com/questions/30283976/accessing-list-members-in-viewdata

Make Command Button invisible in Kendo Grid

谁说我不能喝 提交于 2019-12-11 18:53:16
问题 I am new to kendo UI. In my code, columns are getting created as shown below. grid = $('#grid').kendoGrid({ columns: [ { width: 75, command: [{ name: "Tag", click: function (e) { try { } catch (ex) { alert(ex.message); } } }] }, { field: "Col18", title: "IsTag", width: 75 }, { field: "Col8", title: "System", width: 75 }, ], Now, in the databound, based on the value from datasource, they are changing the color of the row as show below. My issue is, if the color is green, I want to hide the

Kendo UI Grid - Filter with Select Multi-Checkbox

纵饮孤独 提交于 2019-12-11 17:51:52
问题 Problem is that when I choose multiple checkbox and filter for something all checkbox selected returns to normal all checkbox's (un-checked) my question is : Can I do the checked some checkbox's and filter for something without do any changes on my rows checked please check photos in below : 1 - Checked some rows 2 - filter some rows where contains 'ss' 3 - here my problem, after press ok on filter get rows without checked when i'm using kendo ui v.2018 see image please help me!! Thanks UW.

MVC: When using Kendo().Window to load PartialView, getting an error “The resource cannot be found”

有些话、适合烂在心里 提交于 2019-12-11 17:50:02
问题 I'm using modal Kendo().Window() to load a Partial View on a button click. I have a main View, let's say View1 containing the button, the code to display a window where the Partial View containing the Kendo().Grid will be loaded, and a javascript function which opens the window: This is what I have on my View1: This is the button: @(Html.Kendo().Button() .Name("btnSubmit") .HtmlAttributes(new { type = "button"}) .Icon("k-icon k-i-file-txt") .Content("View Details") .Events(e => e.Click(

How do I make a Kendo Menu open on hover, not on click?

泪湿孤枕 提交于 2019-12-11 15:59:26
问题 I have a Kendo menu as my main menu, with config starting like @using Kendo.Mvc.UI @(Html.Kendo().Menu() .Name("main-menu") .OpenOnClick(false) .Items(items1 => Finding no other config option, I thought making OpenOnClick false would make some magical OpenonHover true. I want menu items with children to open on hover so that I can get rid of the arrow to the right of the parent menu item text, as there is absolutely no spacing between the arrow and the tick. I have unsuccessfully tried the

Kendo UI creates a double input when added to Angular 4 app

霸气de小男生 提交于 2019-12-11 15:41:19
问题 I'm working on ASP.NET MVC app. I have recently added Angular 4 to it and now I'm trying to use some Kendo UI controls. I've added it in the same way as suggested at https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/ However instead of having a single input field like here, I'm getting a double input. I've checked the source code and it generated the following html. Any idea why it doesn't work as supposed to? In my html I put just that: <kendo-numerictextbox> [value]=

kendo switch button in asp.net mvc

百般思念 提交于 2019-12-11 15:25:37
问题 I have a kendo switch button, like this: <div class="col-md-2 form-group"> <input id="euro-switch" aria-label="euro Switch" /> </div> and this is the jquery: $("#euro-switch").kendoMobileSwitch({ onLabel: "€", offLabel: "%", change: function (e) { $('kendoNumericTextBox').value } }); and I have a numerictextbox: <div class="col-md-2 form-group"> @(Html.Kendo().NumericTextBox() .Name("SignalThreshold") .Value(0) .Step(10) .Min(0) .Events(e => e.Change("FilterThresholdChange")) .Format("'€' ##

Working on templates for columns in kendo grid

梦想的初衷 提交于 2019-12-11 13:30:06
问题 I have been trying to use if and else in a template of one of the field in kendoGrid.I have two fields "StatusDesc" and "newStatusDesc". I want show one of the value as an anchor tag. That is displaying fine but if you notice onclick defined for anchor tag,it has one of the field from the grid itself because it has to open a another page but when i click on the anchor tag, console of my browser shows: uncaught ReferenceError: WEW6101 is not defined Actually if I check firebug, it shows below