Hello Kendo Team,
I am using Kendo Combo Box under Kendo Grid. Now i need to fetch current row data or array of Kendo Grid onClick event of ComboBox ?
In short meaning, OnClick event of ComboBox , I need to fetch data of current row of Kendo Grid. I can not do this and data of current row can be not fetched.
grid.dataItem(grid.tbody.find("tr")) is not working. How to get the current row array ?
Please See the Screen Shot and Code sample attached herewith for your better understand.
Please help where is my mistake or can you give us a sample code ?
I am using Kendo Combo Box under Kendo Grid. Now i need to fetch current row data or array of Kendo Grid onClick event of ComboBox ?
In short meaning, OnClick event of ComboBox , I need to fetch data of current row of Kendo Grid. I can not do this and data of current row can be not fetched.
======================
Kendo ComboBox Event:
======================
transport: {
read: {
type: "POST",
dataType: "json",
data: function(e){
//alert(e.toSource());
var grid = $("#grid").data("kendoGrid");
var rowDataItem = grid.dataItem(grid.tbody.find("tr")); /* I need Current Row */
alert(rowDataItem.toSource());
},
url: "<?
php
echo $this->url( array('module'=> 'Invoice', 'controller' => 'backend', 'action' => 'gateway' ), 'adminrout', true); ?>"
}
}
grid.dataItem(grid.tbody.find("tr")) is not working. How to get the current row array ?
Please See the Screen Shot and Code sample attached herewith for your better understand.
Please help where is my mistake or can you give us a sample code ?