Hi there this is my first post in here, let me talk about my problem, I have a Grid with Hierarchy and I added a custom button to the child grid to show something else in a kendo window but I need and the id from the datasource of the child id.
This is my code:
$("#grid").delegate(".details-button", "click", function(e) {
e.preventDefault();
console.log($(this).closest("tr")); // this return the correct TR
var dataItem = grid.data('kendoGrid').select($(this).closest("tr")); // this return null
console.log(dataItem);
});
});
This is based on the example of custom command.
Greetings
This is my code:
$("#grid").delegate(".details-button", "click", function(e) {
e.preventDefault();
console.log($(this).closest("tr")); // this return the correct TR
var dataItem = grid.data('kendoGrid').select($(this).closest("tr")); // this return null
console.log(dataItem);
});
});
This is based on the example of custom command.
Greetings