I have found an solution, but perhaps i could avoid item loop ?
dataBound:function(e){
var masterRow = this.wrapper.closest("tr.k-detail-row").prev(".k-master-row");
var masterGrid = $("#JGrid").data("kendoGrid");
var masterDataItem = masterGrid.dataItem(masterRow);
if ( masterDataItem.isDestroy) {
var items = e.sender.items();
items.each(function (index) {
this.className += " noCapRed";
})
}
}
Regards
0
Anton Mironov
Telerik team
answered on 30 Mar 2021, 02:55 PM
Hi,
Thank you for sharing the approach with the community.
I confirm that this one is the recommended approach. This is the way to set the required class to all items in the Detail Grid.
If anything else is needed, do not hesitate to contact me and the team.
Kind Regards,
Anton Mironov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.