Hi,
I m using kendo Hierarchy grid. In child grid I put a "edit" button. So I need to get child row first column data (ID) when I click the edit button.
My detailInit function and clickbfunction is here.
function detailInit(e) {
var _Po_sectionID =e.data.SectionID;
$("<div/>").appendTo(e.detailCell).kendoGrid({
dataSource: {
transport: {
read: _PostionsBySectionUrl + _Po_sectionID
},
schema: {
data: "Data",
total: "Count"
},
},
scrollable: false,
sortable: true,
pageable: true,
columns: [
{ field: "ContainerID", title: "Possition ID",hidden:true },
{ field: "ContainerName", title: "ContainerName",hidden:true },
{
title: "Action", width: 95, command: [
{
id: "edit",
name: "edit",
click: OnPositionRowSelect,
template: "<a class='k-button k-grid-edit' href='' style='min-width:16px;'><span class='k-icon k-edit'></span></a>"
}
]
},
]
});
}
function OnPositionRowSelect(e) {
e.preventDefault();
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
alert("Container Id : "+ ContainerID);
}
Regards
I m using kendo Hierarchy grid. In child grid I put a "edit" button. So I need to get child row first column data (ID) when I click the edit button.
My detailInit function and clickbfunction is here.
function detailInit(e) {
var _Po_sectionID =e.data.SectionID;
$("<div/>").appendTo(e.detailCell).kendoGrid({
dataSource: {
transport: {
read: _PostionsBySectionUrl + _Po_sectionID
},
schema: {
data: "Data",
total: "Count"
},
},
scrollable: false,
sortable: true,
pageable: true,
columns: [
{ field: "ContainerID", title: "Possition ID",hidden:true },
{ field: "ContainerName", title: "ContainerName",hidden:true },
{
title: "Action", width: 95, command: [
{
id: "edit",
name: "edit",
click: OnPositionRowSelect,
template: "<a class='k-button k-grid-edit' href='' style='min-width:16px;'><span class='k-icon k-edit'></span></a>"
}
]
},
]
});
}
function OnPositionRowSelect(e) {
e.preventDefault();
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
alert("Container Id : "+ ContainerID);
}
Regards