This is a migrated thread and some comments may be shown as answers.

OnCollapsed event

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 07 Jan 2011, 05:29 PM
Hello,

I am working with the RADGrid and need to catch the OnCollapsed event when a group is collapsed. 

I've set the following properties in the grid 

    function GroupCollapsed(sender, args) {
        alert('colapsed');
    }

                    <MasterTableView 
                        EditMode="InPlace" 
                        CommandItemDisplay="Top" 
                        GroupLoadMode="Client"
                        DataKeyNames="SectionID" >
...
                    </MasterTableView>
                    <ClientSettings  AllowGroupExpandCollapse="True">
                        <ClientEvents OnGroupCollapsed="GroupCollapsed"
                                      OnRowClick="GroupCollapsed" />
                    </ClientSettings>                   

When I click a row I'm seeing the GroupCollapsed function get executed however it does not get executed when I collapse an expanded group, as I would expect.

I'm pretty sure this is just some minor detail I'm missing but I haven't been able to find it yet.

Any input is appreciated.

Thanks in advance,
jeff bryant


1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 13 Jan 2011, 09:25 AM
Hello Jeff,

I tried to replicate the described behavior on my side but to no avail, please find attached a sample project which works as expected on my side. Test it locally and let me know what the difference in your case is.


Kind regards,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or