In grid documentation I found collapseGroup and expandGroup method.
I need some custom action when user collapse or expand group. In documentation I found detailCollapse and detailExpand event, but not groupCollapse and groupExpand.
Is there any way to catch this 2 events?
2 Answers, 1 is accepted
0
Accepted
Dimiter Madjarov
Telerik team
answered on 23 Jul 2014, 10:32 AM
Hi Matjaz,
Indeed groupExpand and groupCollapse events are currently not available in the Kendo UI Grid API. As a custom solution you could bind to the mousedown event of the expand/collapse arrow in order to detect it manually.
E.g.
$("#grid").on("mousedown", "tr.k-grouping-row a:first", function () {
if ($(this).hasClass("k-i-expand")) {
console.log("expanding");
} else {
console.log("collapsing");
}
});
Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!