This is a migrated thread and some comments may be shown as answers.
GroupBy Expanding Collapsing
1 Answer 18 Views
This is a migrated thread and some comments may be shown as answers.
Felipe Saldana
Top achievements
Rank 1
Felipe Saldana asked on 19 Aug 2009, 11:32 PM
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.



 
            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> 



1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Aug 2009, 06:26 AM
Hello Felipe,

These events will work only in case of  GroupLoadMode="Client".

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Felipe Saldana
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or