kendo-ui

Unable to populate Kendo Scheduler with Data

孤人 提交于 2019-12-24 06:32:57
问题 First time using MVC and Kendo Scheduler and I can't get the data to show on the Calendar. I have the below Model public class Events : ISchedulerEvent { public int Id { get; set; } public string Description { get; set; } public DateTime End { get; set; } public string EndTimezone { get; set; } public bool IsAllDay { get; set; } public string RecurrenceException { get; set; } public string RecurrenceRule { get; set; } public DateTime Start { get; set; } public string StartTimezone { get; set;

kendo autocomplete on numeric field

可紊 提交于 2019-12-24 05:56:40
问题 Trying to use autocomplete but my dataTextField is an integer. So I keep getting "tolower" or "indexof" error. Cant find a single example of someone trying to autocomplete with numbers. PS: works fine with a text field http://jsfiddle.net/NSLp8/ $("#autocomplete").kendoAutoComplete({ dataTextField: "value", select: function(e) { var dataItem = this.dataItem(e.item.index()); //output selected dataItem $("#result").html(kendo.dataItem); }, dataSource: { data: [ { id : 1, value: 1 }, { id : 2,

Kendo UI MVC 4: Form Validation inside a Window does not fire

老子叫甜甜 提交于 2019-12-24 05:54:17
问题 Using ASP.NET MVC 4 I have a window declared with the inner contents (a form) loaded via LoadContentFrom() : @(Html.Kendo().Window() .Name("windowAttachClient") .Title("Attach Client") .LoadContentFrom("MyAction", "ManageUser", new {a= Model.a}) ) The window appears fine and the contents form loads and works, but the client side Validation does not work. Note I have validation set in the Web.Config: <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled"

How to copy paste an entire row with in the same grid in Kendo UI Jquery

南楼画角 提交于 2019-12-24 04:31:14
问题 We can copy paste the value of a cell into other cells when we are batch editing . Now want to know weather we can copy paste an entire row with in the same grid. Found this http://www.telerik.com/forums/copy-and-paste-rows-in-kendo-ui-asp-net-mvc-grid but its between grids and requires selection and keyboard navigation to be disabled, but i need selection and keyboard navigation and selection functionality. 回答1: The easiest way is working at model level. I.e. identify the data corresponding

kendoui:grid - set pager on top and bottom of the grid

橙三吉。 提交于 2019-12-24 04:29:07
问题 Have kind of simple situation can't find solution for. Kendo-UI only implements grid pagination on the bottom. I tried to make it show pager on top, but it becomes unclickable. I think my clone section is wrong, but don't know how to fix it. Thanks in advance guys. here is script and part of jsp... <kendo:grid name="grid" pageable="true" dataBound="onBound"> <kendo:dataSource serverPaging="true" serverSorting="true"> <kendo:dataSource-transport> <kendo:dataSource-transport-read url="api/items

Opening multiple windows with Kendo menu

六眼飞鱼酱① 提交于 2019-12-24 04:06:04
问题 I have a kendo menu and I'd like each menu to open a new window. How can I achieve that? This is my current code in _layout : <div class="k-rtl"> @(Html.Kendo().Menu() .Name("menu") .Items(items => { items.Add().Text("Menu 1").Items(child => { child.Add().Text("1").LinkHtmlAttributes(new { onClick = "menu('1');" }); child.Add().Text("2"); }); }) ) </div> <script> function menu(text) { var window = $("#win1").data("kendoWindow"); switch (text) { case "1": window.refresh({ url: "@Url.Action(

Opening multiple windows with Kendo menu

巧了我就是萌 提交于 2019-12-24 04:05:13
问题 I have a kendo menu and I'd like each menu to open a new window. How can I achieve that? This is my current code in _layout : <div class="k-rtl"> @(Html.Kendo().Menu() .Name("menu") .Items(items => { items.Add().Text("Menu 1").Items(child => { child.Add().Text("1").LinkHtmlAttributes(new { onClick = "menu('1');" }); child.Add().Text("2"); }); }) ) </div> <script> function menu(text) { var window = $("#win1").data("kendoWindow"); switch (text) { case "1": window.refresh({ url: "@Url.Action(

Lost the text boxes values inside the filter menu

自闭症网瘾萝莉.ら 提交于 2019-12-24 03:45:22
问题 I writting a html/javascript page with a kendo grid with filter menu. I have faced the following problem: when I add a new object to the data source (new row) and its kendogrid is reloaded (datasource.read) I lose the textboxes values inside the filter menu that I was inputting the values. Here is the demo: http://jsfiddle.net/3qT3J/2/ $("#grid").kendoGrid({ dataSource: datasource1, height: 300, filterable: true // <== shows a button on each column that display a filter menu }); // reload the

How can I use Kendo UI with Razor?

烈酒焚心 提交于 2019-12-24 03:39:17
问题 I have downloaded and used Kendo UI with Kendo UI grids, but my source code was very complicated, for several reasons: I've hacked the sort to enable case insensitive sorting. I've observed UI bugs when displaying filter menu, page size selector, filter function menu and DatePicker in the filter menu; I've solved these problems with ugly hacks. On client-side I've refreshed the grid when needed using parameterized posts. On server-side I have created a function which handled the sort, filter,

How do I bind a DropDownList to a DataSource within an editor template using the scheduler?

谁说胖子不能爱 提交于 2019-12-24 02:17:09
问题 I'm trying to customize my use of the Kendo UI kendoScheduler widget. I'm specifying a custom template for the editable window that pops up when you go to add/edit an appointment in the scheduler, like so: editable: { template: $("#editor").html() }, I'm defining the template like this: <script id="editor" type="text/x-kendo-template"> <h3>Edit Appointment</h3> <p> <label>Patient: <input name="title" /></label> </p> <p> <label>Start: <input data-role="datetimepicker" name="start" /></label> <