Hi,
I am using Kendo Grid Hierarchy in my ASP.Net Web application.
For each row in my parent table, i have an option to print that row details.
My parent table is associated with a model. Each row in this parent table has several columns:
- ID
- Product Name
- External Number
- Print button
Here is my problem,
I need to print parent row before I explore the child table. That means before I use detailInit(e) function I need to get selected row ID to print that row.
My print function is,
$("#GridName").on("click", ".k-grid-print", function (e) {
e.preventDefault();
var dataItem = $(e.target).closest('td').siblings(':first-child').text();
alert( dataItem );
});
But in here "dataItem" is always empty. If I remove child table from the grid. Its worked. So How I can solve this problem ??
Regards,
Rukz
I am using Kendo Grid Hierarchy in my ASP.Net Web application.
For each row in my parent table, i have an option to print that row details.
My parent table is associated with a model. Each row in this parent table has several columns:
- ID
- Product Name
- External Number
- Print button
Here is my problem,
I need to print parent row before I explore the child table. That means before I use detailInit(e) function I need to get selected row ID to print that row.
My print function is,
$("#GridName").on("click", ".k-grid-print", function (e) {
e.preventDefault();
var dataItem = $(e.target).closest('td').siblings(':first-child').text();
alert( dataItem );
});
But in here "dataItem" is always empty. If I remove child table from the grid. Its worked. So How I can solve this problem ??
Regards,
Rukz