kendo-ui

Cannot display enum values on Kendo grid

吃可爱长大的小学妹 提交于 2019-12-28 19:25:43
问题 In my MVC5 application I have an enum class as shown below and with this approach I can pass the enum values i.e. US, UK instead of United States" from Controller to View. How can I pass and display enum description with the following approach? I tried many different solution method as C# String enums, etc. but none of them solved my problem. On the other hand, I do not want to use sealed class and it would be better for me a solution with enum class as shown below: Enum: public enum Country

Kendo UI datepicker incompatible with Chrome 56

扶醉桌前 提交于 2019-12-28 03:50:06
问题 After updating Chrome to its last version 56.0.2924.76 (64-bit), our Kendo datepickers started not to work properly. All datepickers were binded using ViewModels, and now they don't show their values. If we inspect them we see the value is set, but it's not been shown. For example: @(Html.Kendo().DatePicker() .Name("DateFrom") .Start(CalendarView.Month) .Depth(CalendarView.Month) .Format("MM/dd/yyyy") .HtmlAttributes(new { @id = "ClosingStartDate", @placeholder = "enter date from", @class =

Javascript local database binding of the Kendo UI Scheduler

送分小仙女□ 提交于 2019-12-26 03:10:10
问题 I'm looking for a way to connect my open source Kendo UI Scheduler to a local database using javascript. I've already started but got stuck because I can't find any helpful documentation on how to do this using javascript. $(function () { $('#scheduler').kendoScheduler({ views: [{type:"day", selected:true}], dataSource: { transport: { read: { url: "@Url.Action("GetTasks","Schedules")", dataType: "json" }, update: { url: "@Url.Action("UpdateTask","Schedules")", dataType: "json" }, create: {

Javascript local database binding of the Kendo UI Scheduler

本小妞迷上赌 提交于 2019-12-26 03:10:06
问题 I'm looking for a way to connect my open source Kendo UI Scheduler to a local database using javascript. I've already started but got stuck because I can't find any helpful documentation on how to do this using javascript. $(function () { $('#scheduler').kendoScheduler({ views: [{type:"day", selected:true}], dataSource: { transport: { read: { url: "@Url.Action("GetTasks","Schedules")", dataType: "json" }, update: { url: "@Url.Action("UpdateTask","Schedules")", dataType: "json" }, create: {

How to show time format in kendo chart

眉间皱痕 提交于 2019-12-25 18:22:24
问题 I have the following JSON object. [ { "LocationName":"AAA", "YValue":0.29, "Time":"100" }, { "LocationName":"BBB", "YValue":0, "Time":"500" }, { "LocationName":"CCC", "YValue":0, "Time":"10" }, { "LocationName":"DDDD", "YValue":0, "Time":"120.10" }, { "LocationName":"GGG", "YValue":0, "Time":"60" }, { "LocationName":"LLL", "YValue":0, "Time":"60.5" } ] In above JSON Time in Seconds. I need to show that in the Kendo line chart as HH.MM.SS format. And YValue needs to show in Bar chart.

Kendo UI MVC inline client-side grid - clicking cancel removes row. Not the model ID issue

旧街凉风 提交于 2019-12-25 16:49:46
问题 I have a Kendo grid set up for client-side only. Whenever I add a row, then edit it, then cancel - it gets removed. Multiple questions have been asked here and on the Kendo forums about this same issue, and all the suggestions point to incorrect setup of the model's ID. Well, in my case the ID seems to be set up correctly. I am assigning a new ID to the model in the onGridSave() javascript event, like this: var _curId = 1; function onGridSave(e) { var newId = _curId++; e.model.set('id', newId

Mouse Hover or Click Event in Line Chart

試著忘記壹切 提交于 2019-12-25 16:39:35
问题 When user hovers the mouse on the #chart , then second data is drawn. However I would like to know when user hovers the mouse on the first data line by itself not #chart then second data line is drawn. function createChart() { $("#chart") .kendoChart({ xAxis: {}, yAxis: {}, seriesDefaults: {type: "scatterLine" }, series: [{data: stats2},{name:"gmail"}], }) } var isHover = false; $("#chart").hover( function () { if (!isHover) { var chart = $("#chart").data().kendoChart; chart.options.series[0]

how to Avoid the Unwanted popup window creation while Using two types of editing in a single kendo grid in asp

喜你入骨 提交于 2019-12-25 16:25:35
问题 am Using KEndo Grid .. popup editing For Toolbar and inline Editing for Command $(".k-grid-popup", grid.element).on("click", function () { var popupWithOption = { mode: "popup", template: kendo.template($("#customPopUpTemplate").html()), window: { title: "Your Title" } }; grid.options.editable = popupWithOption ; grid.addRow(); grid.options.editable = "inline"; }); This Code is Working Fine,,If i Click Edit button And Update the Record then i click add button means that 2 popup window will

how to retrieve an instance of kendo scheduler in MVC and add a new property to this

筅森魡賤 提交于 2019-12-25 16:00:13
问题 i have used kendo scheduler like this @(Html.Kendo().Scheduler<myEntity>() .Name("scheduler") .Date(currentDateTime) //.Events(e => { e.Error("error_handler"); }) ); now i want to retrieve the same instance and add another property to it say Events as in .Events(e => { e.Error("error_handler"); }) dynamically. how can i do this 回答1: You can do it in JavaScript (only): var scheduler = $("#scheduler").data('kendoScheduler'); scheduler.bind("error", error_handler); If you wanna set not event

kendo chart series defaults

孤街浪徒 提交于 2019-12-25 14:13:41
问题 I have a kendo chart and i have to binding the chart using model. I have to set the series defaults option. i got the code how to set the seriesdefualts in javascrit.Can someone help me how to add the same in model view binding. javascript: seriesDefaults: { overlay: { gradient: null } Model view Binding: @(Html.Kendo().Chart(Model.ReportDataList) .Name("chartProjPer") .Title(title => title .Text("% by Projects") .Position(ChartTitlePosition.Top) ) .Legend(legend => legend .Visible(true)