kendo-ui

Select Range Of DateTimePicker not working properly

守給你的承諾、 提交于 2019-12-10 22:14:43
问题 Is there any default way in kendo DatePicker for ensuring that To date is always greater than or equal to From date. here is the code I've tried: My Range selection code: function startChange() { var startDate = startdatetimepicker.value(), endDate = enddatetimepicker.value(); if (startDate) { startDate = new Date(startDate); startDate.setDate(startDate.getDate()); enddatetimepicker.min(startDate); } else if (endDate) { startdatetimepicker.max(new Date(endDate)); } else { endDate = new Date()

Kendo UI throwing CS1593: Delegate 'System.Action' does not take 1 arguments

回眸只為那壹抹淺笑 提交于 2019-12-10 21:44:00
问题 Here is a block of code that was working and now isn't. I am using Kendo UI for MVC. The error is CS1593: Delegate 'System.Action' does not take 1 arguments. This was an older site; opening and running shows the working version as VS2010, I did update Kendo and MVC, but not in this project. Any ideas? @(Html.Kendo().Window() .Name("Window") .Title("Results") .Content(@<text><div class="Result"></div></text>).Draggable() .Resizable() .Visible(false) .Width(450) .Actions(actions => actions

how to catch kendo grid cell out of focus event?

╄→尐↘猪︶ㄣ 提交于 2019-12-10 21:22:39
问题 In my kendo grid, I want to put some value in a cell & then after leaving the cell, based on the value of that cell, I need to put some other value on the adjascent cell. How can I do that? I have studied the following jsfiddle, the problem is its triggering the event everytime I'm getting out of any cell, but I need to fire the event for only one column's cell. http://jsfiddle.net/latenightcoder/6ZNqN/1/ here is my grid: //To Define Columns for Yearly Holiday Kendo Grid var YearlyHolidayGrid

KendoUI Window Flashes Old Content

笑着哭i 提交于 2019-12-10 21:12:55
问题 Using KendoUI to display a popup window, I've noticed that if I reuse an existing window by calling refresh it briefly displays the old content until the AJAX request completes. My code: function clickHandler(evt) { evt.preventDefault(); var dta=this.dataItem($(evt.currentTarget).closest("tr")); convertWindow.refresh({ type: "GET", url: "CallMeConvert?AppointmentId="+dta.AppointmentId}); convertWindow.center(); convertWindow.open(); } Is there any way to prevent this happening, or must I

kendoui ClientTemplate in Grid not working in asp.net mvc 4

房东的猫 提交于 2019-12-10 21:09:59
问题 I have been looking all over for the answer and think I am missing something simple. I have a kendo grid where I want one of the columns to be a link to another page with the id as a route parameter. However, the value in the column cells are the bound values and are unchanged by my template. Any insights to this will be appreciated. @(Html.Kendo().Grid((IEnumerable<ProviderAccess>)Model.Providers) .Name("grants-grid") .Columns(columns => { columns.Bound(a => a.ProviderName); columns.Bound(a

How to create an Odata Service using PHP?

拜拜、爱过 提交于 2019-12-10 21:06:05
问题 I am using Kendo-UI, in this framework we can read the data using ODATA, JSON-P, JSON. We are successfully develop the data in JSON-P and JSON in PHP using(json_encode()). but we are unable to create ODATA using PHP. We should have to make the encoded data in ODATA format using PHP. Please look at the code in which we needed this. Please look below. {field: "Status", title: "Status", width: "150px", editor: function(container, options) { $('<input data-text-field="Name" data-value-field="Id"

Possible to use ClientRowTemplate() Kendo UI Grid without building a String?

半世苍凉 提交于 2019-12-10 20:26:20
问题 The example given for using ClientRowTemplate in the Kendo UI Grid uses a nasty HTML string .ClientRowTemplate( "<tr><td colspan=\"6\">" + "<div class=\"customer-details\">" + "<img src=\"" + @Url.Content("~/Content/web/Customers/") + "#=CustomerID#.jpg\"" + "alt=\"#=ContactName#\" />" + "<h3 class=\"k-widget\">#=ContactName#</h3>" + "<dl>" + "<dt>Name:</dt><dd>#=ContactName#</dd>" + "<dt>Company:</dt><dd>#=CompanyName#</dd>" + "<dt>Country:</dt><dd>#=Country#</dd>" + "</dl>" + "<dl >" + "<dt

How to get the value from a kendo Editor in my model

删除回忆录丶 提交于 2019-12-10 20:15:30
问题 I am trying to use a Kendo UI Editor control in my ASP.NET MVC application. No success until now, since I cannot manage to get the value in the editor back to the model in the controller. My model is very simple (to edit an html page in my website): public class EditedPage { public string Name { get; set; } public string Title { get; set; } [AllowHtml] public string Content { get; set; } } And my view includes this code: @model Page <h2>@Model.Title</h2> @using (Html.BeginForm()) { @Html

Open kendo editor on hover also

坚强是说给别人听的谎言 提交于 2019-12-10 20:01:15
问题 I have Kendo grid with dropdowns, datepicker editor. It works fine except for the dropdown/datepicker editor open when i click on the block. Can there be a way so that the block be converted into editor form(datePicker/dropdown) on Hover also. Normal state image - > When i click on the date field , it changes to -> When i click on dropdown - > I want to the blocks to be converted into editor on hover itself and blocks should get back to normal state on blur. My editor template is function

Foreign key column sorting

送分小仙女□ 提交于 2019-12-10 19:56:13
问题 I'm using Kendo grid with ForeignKey column with sorting. By default this column is sorted by value but we need it to be sorted by text. Could anyone provide please an example of doing it using ASP.NET Wrappers? 回答1: I found the trick was to implement IComparable on the foreign key object, which then sorts by the text name instead of the id in the Kendo grid: public class MyForeignKeyModel : IComparable<MyForeignKeyModel> { public int ID { get; set;} public string Name { get; set;} public int