expand
Fires when an item is about to be expanded. 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.model kendo.data.TreeListModel
The data item to which the table row is bound.
e.preventDefault Function
If invoked, prevents the expand action. The child table rows will not be shown.
Example - subscribing to the expand event before initialization
<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
model: {
details: {
title: "Title",
price: 15
},
foo: "bar",
baz: 5
},
width: 500,
expand: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("expand");
}
});
</script>
Example - subscribing to the expand event after initialization
<div id="propertyGrid"></div>
<script>
function expand(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("expand");
};
$("#propertyGrid").kendoPropertyGrid({
model: {
details: {
title: "Title",
price: 15
},
foo: "bar",
baz: 5
},
width: 500
});
</script>
var component = $("#propertyGrid").data("kendoPropertyGrid");
component.bind("expand", expand);
</script>