kendo-ui

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

kendo grid column: how to data bind click event in footer template?

☆樱花仙子☆ 提交于 2019-12-11 00:26:52
问题 Kendo Grid columns' data-bind click event in the footer template is not working. Please see the example http://dojo.telerik.com/ALAZo The click event on column template for price is working fine but not for the footer template for the same. Any resolution which uses MVVM binding would be greatly appreciated 回答1: By default, the header and footer of the Grid are not bound to the ViewModel. A workaround is to find the footer with an appropriate jquery selector after the grid has been

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

kendo ui cancel treeview drop

一世执手 提交于 2019-12-11 00:17:54
问题 i have a TreeView that once the user drops the item to the desired position, it displays a dialog box and asks for confirmation, if the user selects cancel, how would i also cancel the placement of the item so it goes back to its original position? my current code is below but isnt working: var newDiv = $(document.createElement('div')); newDiv.html('Are you sure you want to move the item: ' + title); newDiv.dialog( { autoOpen: true, width: 600, buttons: { "Save": function () { $(this).dialog(

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

Kendo Template check box not firing click event

爷,独闯天下 提交于 2019-12-10 23:59:07
问题 I have used Kendo Template as follows: <script type="text/javascript" src="@Url.Content("~/Scripts/Module/Analysis/CreateMaintainAnalysis.js")"></script> <script type="text/x-kendo-template" id="Modeltemplate"> <div class="section group fr"> <div class="col span_2_of_12"> #if(ACTIVE_MODELS_COUNT > 0){# <input class="ModelCheckBox" type="checkbox" checked/>#} else {# <input class="ModelCheckBox" type="checkbox" unchecked/> #}# </div> <div class="col span_4_of_12"><label>#:MODEL#</label></div>

AngularJS Kendo Treeview not updating

自作多情 提交于 2019-12-10 23:56:53
问题 Thanks to the answer from "Words Like Jared" at Angularjs + kendo-ui treeview, I got my treeview working and everything was fine. Until - someone wanted to update/filter the treeview based on checkboxes and the like. My problem is that the tree does not update to reflect the change in the datasource made in the controller. Based on the jsfiddle in the answer mentioned above, I have created one to show my problem. http://jsfiddle.net/rajeshmathew/LwDs5/ if ($scope.showLimitedRecords) { $scope

Kendo Angular multiselect set selected values

拜拜、爱过 提交于 2019-12-10 23:06:19
问题 I´m using Kendo multiselect with Angular-Kendo directives and with remote datasource. I´m trying to set the selected items when the application starts but with no luck. Can anyone please help me? See Code here: JS Bin 回答1: You can just make a custom directive, and pass in the items you want selected beforehand to the value attribute of the multiselect directive, have a look at this Plunk to see the directive I use. 回答2: You have to hook into the on change event directive and send the

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("~

How to delete multiple records in grid using kendoui

∥☆過路亽.° 提交于 2019-12-10 22:36:18
问题 I am having a grid with checkboxes for each item in the grid. I need to delete the multiple checked items in the grid. How can i do that in kendo ui. Regards, Sri 回答1: When the button is clicked use jQuery to find all TR elements which contain the checked checkboxes and then use the removeRow method. Something like: $.each($('#GridName :checkbox:checked').closest('tr'),function(){ $('#GridName').data().kendoGrid.removeRow($(this)); }) 来源: https://stackoverflow.com/questions/13697307/how-to