kendo-asp.net-mvc

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

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.

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)

Kendo Grid - Detail Template - DataSource Read is not firing the controller action

二次信任 提交于 2019-12-25 09:05:31
问题 App type: ASP.NET MVC with Kendo framework Problem Encountered: The detail template is not firing the controller action method. Please find the attached screenshot also. I checked it under the firebug window also, there is no ajax call to the controller action method "PublishedImportFiles_Read" . This is making me crazy and annoying. No error is thrown or shown for this anomaly. I guess i am missing something very small. Please help. MVC - View Code <div class="gapLeft gapBelow20" style=

Post additional data as list kendo multiselect read

不羁的心 提交于 2019-12-25 08:47:21
问题 I have a two kendo multiselect and i want my roles multiselect to sort of cascade from the other in a way that on the roles multiselect read i want to post a list of the values selected in my systems multiselect. This is what my roles multiselect looks like: @(Html.Kendo().MultiSelect() .Name("Roles") .DataTextField("Name") .DataValueField("Id") .Placeholder("Select roles") .DataSource(source => { source.Read(read => { read.Action("GetRoles", "UserAdmin").Data("additionalItemsGetRoles"); })

change cell styling in KendoGrid

丶灬走出姿态 提交于 2019-12-25 08:27:40
问题 Just discovered the KendoGrid and was trying to change the style of an individual column(cell) after changing another cellvalue. For example I have a grid with a shipname and shipcity column. Suppose I have a business rule that says : 'Make shipcity cell value disabled when the shipname on the same row has the same value' I found this sample which uses the blur event which I probably use, what would be a good way of implementing this rule? Also nice to know your opinion in relation to asp.net

CultureInfo for Japanese language not setting up DateTimeFormat.AbbreviatedMonthNames property correctly

时光总嘲笑我的痴心妄想 提交于 2019-12-25 04:07:03
问题 I wanted to show the date in dd-MMM-yyyy format for Japanese culture in a web application. Hence I wrote below simple code. CultureInfo cu = new CultureInfo("ja-JP"); System.Threading.Thread.CurrentThread.CurrentCulture = cu; System.Threading.Thread.CurrentThread.CurrentUICulture = cu; lbl1.Text = DateTime.Now.ToString("dd-MMM-yyyy"); But found that the label prints the month number instead of the month name. i.e. it shows 30-10-2014 instead of something 3 letter month name in japanese. After