kendo-ui

Treeview select event is not firing in kendo ui

倾然丶 夕夏残阳落幕 提交于 2021-02-10 22:39:14
问题 I have a treeview defined like $("#treeview").kendoTreeView({ dataSource:homogenous, dataBound: function(e){ $("#treeview").data("kendoTreeView").select(".k-item:first"); }, select: function(){ alert('selectd'); } }); Initially the treeview is selecting. But it is not getting the alert of select . But when we selecting the node it is getting the alert. How should i get rid of them. 回答1: The select method won't fire the select event. You can however use the trigger method to fire any event:

Enfocing min width on Kendo Grid (jQuery) when grid has hidden columns

时间秒杀一切 提交于 2021-02-10 14:24:36
问题 I am trying to enforce a min-width rule for resizable columns in the Kendo Grid. I used the sample that they provided here. In their example all of the columns are being displayed. In my case there are some columns which are hidden. I have a sample here using Kendo's Dojo to illustrate my problem. Any column that comes after the hidden column no longer maintains the min-width rule. Best I can figure is that this is an issue with jQuery and it's interactions with elements that have been set to

Enfocing min width on Kendo Grid (jQuery) when grid has hidden columns

早过忘川 提交于 2021-02-10 14:23:22
问题 I am trying to enforce a min-width rule for resizable columns in the Kendo Grid. I used the sample that they provided here. In their example all of the columns are being displayed. In my case there are some columns which are hidden. I have a sample here using Kendo's Dojo to illustrate my problem. Any column that comes after the hidden column no longer maintains the min-width rule. Best I can figure is that this is an issue with jQuery and it's interactions with elements that have been set to

Kendo grid button click arguments

跟風遠走 提交于 2021-02-10 05:27:47
问题 I have a kendo grid with a button column. When the button is clicked, I want it to call a javascript function with the row's data as parameters. Here's what I have so far $(grd).kendoGrid({ dataSource: ds, detailInit: detailInit, columns: [ {field: "foo", title: "bar" }, {field: "Y" }, {command: { text: "MyButton", click: doStuff } } ] }); function doStuff(e) { //e is click events but I want to pass in data from the row instead //following is code I found here but item is null for me var row

How to change color of row based on particular column condition in kendo grid for angular

人盡茶涼 提交于 2021-02-08 17:01:32
问题 I want to apply red color to row whose completedIn hours column value is greater than 24. how can i do it. please help i am new to angular. <kendo-grid [kendoGridBinding]="gridData"> <kendo-grid-column field="RequestNumber" title="Request No." width="110" > </kendo-grid-column> <kendo-grid-column field="RequestNumber" title="Request No." width="110" > </kendo-grid-column> <kendo-grid-column field="Name" title="Name." width="110" > </kendo-grid-column> <kendo-grid-column field="CompletedIn"

How to change color of row based on particular column condition in kendo grid for angular

别来无恙 提交于 2021-02-08 17:01:28
问题 I want to apply red color to row whose completedIn hours column value is greater than 24. how can i do it. please help i am new to angular. <kendo-grid [kendoGridBinding]="gridData"> <kendo-grid-column field="RequestNumber" title="Request No." width="110" > </kendo-grid-column> <kendo-grid-column field="RequestNumber" title="Request No." width="110" > </kendo-grid-column> <kendo-grid-column field="Name" title="Name." width="110" > </kendo-grid-column> <kendo-grid-column field="CompletedIn"

How to change color of row based on particular column condition in kendo grid for angular

时光怂恿深爱的人放手 提交于 2021-02-08 17:01:20
问题 I want to apply red color to row whose completedIn hours column value is greater than 24. how can i do it. please help i am new to angular. <kendo-grid [kendoGridBinding]="gridData"> <kendo-grid-column field="RequestNumber" title="Request No." width="110" > </kendo-grid-column> <kendo-grid-column field="RequestNumber" title="Request No." width="110" > </kendo-grid-column> <kendo-grid-column field="Name" title="Name." width="110" > </kendo-grid-column> <kendo-grid-column field="CompletedIn"

Kendo UI, How to manually call validate() on kendo grid cell

China☆狼群 提交于 2021-02-08 15:22:13
问题 Is there a way to call validate() on a cell in kendo-grid without using the editCell() method? the way to invoke validator recommended by the Telerik team is as follows: $("myGrid").data("kendoGrid").editable.validatable.validate() however, no editable object is available if there is no cell open (e.g there is no focused input in the grid), so I have to activate cells one by one to call validate() I would like to invoke validation on each of the grid cells and run some logic (e.g. addClass()

Get column index from column name in Kendo grid in Javascript

流过昼夜 提交于 2021-02-08 12:39:12
问题 Is there a way we can find out the index of column in grid, if we know the column name in Kendo grid? e.g. EmployeeID| Name 123 | John I want to know the index of 'Name' field i.e. 1 in the grid. Any suggestions. Thanks. Sanjeev 回答1: Please try with the below code snippet. <!DOCTYPE html> <html> <head> <title>Jayesh Goyani</title> <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2015.2.902/styles/kendo.common-bootstrap.min.css" /> <link rel="stylesheet" href="https://kendo.cdn

How to access the kendo grid footer template value

时间秒杀一切 提交于 2021-02-08 06:17:19
问题 i have developed a web application using kendo tools and asp.net mvc4.. below is a screenshot of the grid i'm using and i need to get the value of footer under the "Total Stock" column.. according to this, the total value is $74,050.85.. i need to assign this value to a text box or a variable and use it in some where else but there no positive feedback from the online resources.. can somebody please tell me that how to get a value from footer template .. 回答1: You can get the footer aggregate