Hiya,
I was trying to hide the expand/collapse column and use the row click to expand/collapse the row detail instead. I was able to implement each individually but when I combine them the row click is no longer working.
I use the following to hide the expand/collapse column in the DataBound event:
$(
".k-hierarchy-cell"
).remove();
$(
".k-hierarchy-col"
).remove();
And something like the following to implement the row click to expand the row detail:
element.on(
'click'
,
'tr'
,
function
(){
$(element).data().kendoGrid.expandRow($(
this
));
})
Did I miss anything?
Cheers,
Byang