groupCollapse
Fires when a group of items is about to be collapsed. The event handler function context (available through the this
keyword) will be set to the component instance.
Event Data
e.sender kendo.ui.PropertyGrid
The component instance which fired the event.
e.group kendo.data.TreeListModel
The group object associated with the group row.
e.preventDefault Function
If invoked, prevents the collapse action. The child table rows will not be hidden.
Example - subscribing to the collapse event during initialization
<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
model: {
details: {
title: "Title",
price: 15
},
foo: "bar",
baz: 5
},
width: 500,
groupCollapse: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("groupCollapse", e.group);
}
});
</script>