kendo-ui-mvc

Kendo UI Scheduler: Custom view and edit behavior

落爺英雄遲暮 提交于 2020-01-04 06:24:01
问题 I've been looking into this for a few days now and searched the forums high and low. Both in stack overflow, as well as Telerik's own forums, to no avail. I'm using a Kendo UI scheduler component in an MVC application. Below is part of the index.cshtml that creates the scheduler. @(Html.Kendo().Scheduler<TaskViewModel>() .Name("scheduler") .Views(views => { views.CustomView("ThreeDayView"); }) .DataSource(d => d .Read("Read", "Home") .Create("Create", "Home") .Destroy("Destroy", "Home")

Kendo UI Scheduler: Custom view and edit behavior

扶醉桌前 提交于 2020-01-04 06:23:10
问题 I've been looking into this for a few days now and searched the forums high and low. Both in stack overflow, as well as Telerik's own forums, to no avail. I'm using a Kendo UI scheduler component in an MVC application. Below is part of the index.cshtml that creates the scheduler. @(Html.Kendo().Scheduler<TaskViewModel>() .Name("scheduler") .Views(views => { views.CustomView("ThreeDayView"); }) .DataSource(d => d .Read("Read", "Home") .Create("Create", "Home") .Destroy("Destroy", "Home")

Hide an element conditionally by its value

不想你离开。 提交于 2019-12-13 23:35:23
问题 I have a kendo grid containing following columns. 1.Name 2.Age 3.Type{values:public,private} I need to hide a column in specific row. In my problem, i want to hide age cell if Type value is private. 回答1: using if else format columns.Template(@<text></text>) .ClientTemplate("#if (field == value) {#" + "<a></a>" + "#}else {#" +"<input name='chkSubscribed' class='subscribedClass'type='type': '' #/>" + "#} #").Width(130).Title("title"); 回答2: You can't hide the cell but you can hide the age

.NET Kendo Scheduler: dynamically change datasource resources

戏子无情 提交于 2019-12-12 02:48:32
问题 Now i'm using a datasource like this: (with the parameters to filter hard coded) $(function () { $("#scheduler").kendoScheduler({ date: new Date(Date.now()), startTime: new Date(2013, 5, 13, 9, 0, 0, 0), height: 800, timezone: "Etc/UTC", group: { resources: ["Rooms"] }, resources: [ { name:"Rooms", title: "Room", field: "RoomID", dataSource: { transport: { read: { url: "@Html.Raw(Url.Action("Filter_Rooms", "Room", new{ pPar1= true, pPar2 = false, pPar3 = true, }))", dataType: "json" } } } }

Kendo UI Notifications and MVC

荒凉一梦 提交于 2019-12-11 18:41:43
问题 Does anyone tried Kendo UI notifications from MVC server side, like MvcFlashMessages? I want to show "succeed or error" notification after form submit(In my scenario, after form submit Controller action redirects to view with items list and i want to show succeed notification). Or maybe more different scenario like after grid item create/delete/edit notification show but notification must rise from server side if some errors occurs not only from JS. Thanks for attention. 回答1: First of all you

Why The DropDown list template of kendo ui sample for ASP.NET MVC 5 dont run right?

拥有回忆 提交于 2019-12-11 07:51:01
问题 I use dropdown template for kendo ui Grid.this example was for ASP.NET MVC but when click on the dropdown, it display ID and Name that is not dropdown. I copied and replaced the code but instead of dropdown that display Id input and Name input. the link of this example is: https://demos.telerik.com/aspnet-mvc/grid/editing-custom my editing_custom.cshtml: @using Microsoft.AspNet.Identity.EntityFramework; @using UserManagerSample.KendoDropDown.KendoDropViewModel; @using Kendo.Mvc.UI <script src

Kendo MVC ListView Editing

天涯浪子 提交于 2019-12-11 00:30:30
问题 please check the below code @model IEnumerable<Polls.Core.domain.Address> <div class="demo-section"> <a class="k-button k-button-icontext k-add-button" href="#"><span class="k-icon k-add"></span>Add new record</a> </div> <script type="text/x-kendo-tmpl" id="template"> <div class="product-view k-widget"> <div class="edit-buttons"> <a class="k-button k-button-icontext k-edit-button" href="\\#"><span class="k-icon k-edit"></span></a> <a class="k-button k-button-icontext k-delete-button" href="\\