kendo-grid

Kendo UI: Update one columns data on changing value in another column

百般思念 提交于 2019-12-11 00:38:13
问题 Scenario I am having a grid of product details which on Edit opens up a pop-up comprising of that record details. All fields are readonly except the quantity field. Hence, when I increase or decrease the quantity the price column should reflected based on the value. So if quantity of 1 is 10 then when I increase the quantity to 2 it should be reflected to 20. Questions 1) I've studied the editor method a bit, I'll have to use the same method on the quantity column right?? 2) How shall I grab

What is $rootscope.$$phase = null?

南笙酒味 提交于 2019-12-11 00:22:05
问题 I use kendo ui and angular.js in my application. When i do some actions like hover or click event on some elements i see that other elements simply disappear. I debug it and see in angular.js file $rootscope.$$phase = null; and then the elements disappear. What is this: $rootscope.$$phase = null; and how to prevent it? 来源: https://stackoverflow.com/questions/34537099/what-is-rootscope-phase-null

e.slice is not a function error in ASP.NET MVC with Kendo UI

淺唱寂寞╮ 提交于 2019-12-10 23:59:20
问题 I am working on asp.net MVC with Kendo UI grid. I am getting the information from a method and give it to the grid. and I have in toolbar a datepicker so when I pick a new date the code will go to the method refilter the LINQ then I received a new list. I wrote this code: public ActionResult Grid_ReadLogAdminList([DataSourceRequest] DataSourceRequest request,[Bind(Prefix = "id")] string date) { //both the date and result is correct always var jsonResult = Json(result, JsonRequestBehavior

Custom Ajax Binding does not work properly

白昼怎懂夜的黑 提交于 2019-12-10 22:58:15
问题 I have following code for Custom Ajax Binding. This has following problems even though it is displaying data for the first page. • The request.Sorts is coming as NULL in to the Orders_Read method • The request.PageSize is coming as 0 to the Orders_Read method • The request.Page is coming as 1 to the Orders_Read method (even if I click on the page 2) What changes need to be done here to get proper sort and pagesize values? Note: I am using MVC Wrapper for Kendo Grid. VIEW @Scripts.Render("~

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()

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 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

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

Adding a Dropdown inside Kendo Grid

邮差的信 提交于 2019-12-10 19:28:15
问题 I'm trying to add a DropDown inside kendo grid but it displays a TextBox @(Html.Kendo().Grid((IEnumerable<Doc.Web.Models.Vendor.DocumentsDetails>)Model.documents_lst) .Name("grid").Scrollable() .Columns(columns => { columns.Bound(o => o.DocumentRevisionID).Visible(false); columns.Bound(o => o.Documentnumber).Title("Document #").Width(150); columns.Bound(o => o.Revision).Title("Revision").Width(80); columns.Bound(o => o.RevisionDate).Format("{0:dd/MM/yyyy}").Title("Rev Date").Width(85);

Column lines are not in sync in a Kendo grid

拈花ヽ惹草 提交于 2019-12-10 18:36:18
问题 I have a Kendo grid with too many columns. Initially I chose to hide some columns, but later I decided to display all the columns with a horizontal scrollbar. I did this by assigning a width to each column. When I did so, the lines between each column are not in sync with the header lines. I mean, the lines in the data part of the grid, are moved slightly to the left with respect to the header lines. To clarify, when I give the width for each column in pixels the above problem persists. But,