kendo-asp.net-mvc

Binding array of object to Kendo grid popup multiselect

☆樱花仙子☆ 提交于 2021-01-29 07:30:25
问题 I'm trying to bind an array of id-value pairs to a kendo grid popup editor. Got everything to work for creating a new record. Popup editor loads the custom editor and successfully submits the data to the controller. The problem is when I try to edit records. The records displays properly in the row, but when I try to edit it, the multiselect does not hold the values. Grid Markup $("#ProjectSites-SubContract-grid").kendoGrid({ dataSource: { type: "json", schema: { data: "Data", total: "Total",

Kendo UI Grid - Where to look for fonts and icons

亡梦爱人 提交于 2020-12-12 11:32:25
问题 I'm in the early stages of learning Kendo UI. I've got the grid work and loading data but none of the images/icons that should appear in the grid are appearing. When I load the page containing the grid, I get the following 404 errors. The error message doesn't tell me where it's expecting to find these files. Where is Kendo UI looking for these files? Or, can I tell Kendo where to look for them? I currently have the files located here in my MVC folder structure, but it's not finding them: 回答1

Change JSON serialization from camelCase to PascalCase [duplicate]

偶尔善良 提交于 2020-06-29 03:51:16
问题 This question already has an answer here : JSON serializer Not Working After Upgrade To 3.6.2 (1 answer) Closed last year . After migrating my project from Core 2.1. to 2.2. I am having trouble with my Kendo widgets. Fields in the model are specified with PascalCase and the field names returned from the server in the JSON are using camelCase. I've added DefaultContractResolver in Startup but JSON is still serialized in camelCase. Any workaround here? services .AddMvc(options => options

i want expand and collapse row on select in kendo grid for MVC UI

左心房为你撑大大i 提交于 2020-05-17 08:51:27
问题 i am trying to expand row on select and collapse same row on click by using Kendo Grid for Mvc UI ,, How to Check the CSS class of the arrow icon in the selected row - k-plus status ,, in the other words i would like to check if selected row is expanded or not. 回答1: Use this script: selectable: true, change: function() { let $row = this.select(); if ($row.length && $row.find('[aria-expanded="true"]').length) { this.collapseRow($row); } else { this.expandRow($row); } } It checks if the row is

Kendo Grid Inline edit kendo timepicker not changing value

混江龙づ霸主 提交于 2020-03-25 17:49:18
问题 Hi I have grid with inline editing when i want to click cell to update i can see my timepicker and i can select value but when i pass next cell value is disappearing and not select or changing anything How can i solve it? @( Html.Kendo().Grid<MockUpForeNet.Controllers.CardDetailController.Days>() .Name("timegrid") .DataSource(d => d.Ajax().Read("TimeGridBinding", "CardDetail", new { rule = rule }).Update("UpdateTime","CardDetail").Model(keys => { keys.Id(k => k.DayId); keys.Field(c => c

How to pass data from Razor View Kendo UI DropDownList to Controller Variable?

♀尐吖头ヾ 提交于 2020-02-04 10:43:05
问题 vs'12 , KendoUI, asp.net C# MVC4 Internet Application EF Code First Would like to see how one would pass values form a KendoUI DropDownList to a MVC Controller from a Razor View Controller [HttpPost] //[AcceptVerbs(HttpVerbs.Post)] public ActionResult Index(ViewModelCCTRST model) //, FormCollection values) { if (ModelState.IsValid) { string clt = model.Clients; string cnt = model.Countys; string twn = model.TownShips; ... ... //string xx = values["Clients"]; // xx = values["Countys"]; // xx =

Why is CascadeFrom() not doing anything?

坚强是说给别人听的谎言 提交于 2020-01-17 03:25:17
问题 I'm really new to Kendo UI, and I'm having problems with CascadeFrom() not calling an action on my controller. Here's the bare bones of my problem: // The parent dropdown <select id="Testing"> <option value="0">Vehicle</option> <option value="1">Driver</option> <option value="2">Trailer</option> </select> // The dynamic dropdown @(Html.Kendo().DropDownListFor(m => m.VDTId) .DataValueField("Id") .DataTextField("Item") .DataSource(ds => { ds.Read(c => c.Action("GetVDT",

how to create row rapidly - Telerik Kendo UI MVC grid pop-up mode

感情迁移 提交于 2020-01-16 15:46:14
问题 I have a grid similiar that. But I don't want to close pop-up window; after clicking update button, i want to save record and clear all (or some) fields and continue to create (other) new record. So user can re-insert new record rapidly (multiple insert in the same window). Finally user click the "cancel" (or close) button and popup will be closed. How can I do that. 回答1: Subscribe to Grid Edit/Save javascript events and follow the example below var _PreventWindowClose = false; var

Multiple filters in Kendo Combobox

匆匆过客 提交于 2020-01-15 07:06:07
问题 I have seen several examples where either the FilterType.StartsWith or FilterType.Contains is used as the filter. @(Html.Kendo().ComboBox().Name("kcombobox") .HtmlAttributes(new { style = "width:250px" }) .Placeholder("Select a value...") .DataTextField("Text") .DataValueField("Value") .Filter(FilterType.StartsWith) .DataSource(source => { source.Read(read => { read.Action("GetCountries", "Home"); }).ServerFiltering(true); }) ) How to use multiple filters together. I want to filter the data

Multiple filters in Kendo Combobox

人走茶凉 提交于 2020-01-15 07:05:04
问题 I have seen several examples where either the FilterType.StartsWith or FilterType.Contains is used as the filter. @(Html.Kendo().ComboBox().Name("kcombobox") .HtmlAttributes(new { style = "width:250px" }) .Placeholder("Select a value...") .DataTextField("Text") .DataValueField("Value") .Filter(FilterType.StartsWith) .DataSource(source => { source.Read(read => { read.Action("GetCountries", "Home"); }).ServerFiltering(true); }) ) How to use multiple filters together. I want to filter the data