I have a "Grouped" grid and I want to capture some events.
I have the following code setup to try and capture the events(OnGroupCollapsing, OnGroupExpanding, OnGroupCollapsed, OnGroupExpanded) and not one of them is getting captured.
Am I missing something....seems these events should work like every other event.
I have the following code setup to try and capture the events(OnGroupCollapsing, OnGroupExpanding, OnGroupCollapsed, OnGroupExpanded) and not one of them is getting captured.
Am I missing something....seems these events should work like every other event.
function onGroupCollapsing(sender, eventArgs) |
{ |
eventArgs.set_cancel(true); |
} |
function onGroupExpanding(sender, eventArgs) |
{ |
eventArgs.set_cancel(true); |
} |
function test(sender, eventArgs) |
{ |
alert("event fired"); |
} |
<ClientSettings ReorderColumnsOnClient="false" AllowDragToGroup="false" AllowExpandCollapse="true" AllowGroupExpandCollapse="true" AllowRowsDragDrop="true" AllowColumnsReorder="false" > |
<Selecting AllowRowSelect="true" EnableDragToSelectRows="false"></Selecting> |
<ClientEvents OnRowDropping="onRowDropping" OnRowDragStarted="onRowDragStarted" OnGroupCollapsing="onGroupCollapsing" OnGroupExpanding="onGroupExpanding" OnGroupCollapsed="test" OnGroupExpanded="test" /> |
</ClientSettings> |
<ClientSettings ReorderColumnsOnClient="false" AllowDragToGroup="false" AllowExpandCollapse="true" AllowGroupExpandCollapse="true" AllowRowsDragDrop="true" AllowColumnsReorder="false" > |
<Selecting AllowRowSelect="true" EnableDragToSelectRows="false"></Selecting> |
<ClientEvents OnRowDropping="onRowDropping" OnRowDragStarted="onRowDragStarted" OnGroupCollapsing="onGroupCollapsing" OnGroupExpanding="onGroupExpanding" OnGroupCollapsed="test" OnGroupExpanded="test" /> |
</ClientSettings> |