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

expand/collapse client events

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rafael Enriquez
Top achievements
Rank 1
Rafael Enriquez asked on 04 Jun 2010, 03:45 PM
Hi:

I have a hierarchical radgrid which I'm capturing some client events and all of them other than expand/collapse are working ok. Child data is loading ok too, through RadAjaxManager object. The only problem is that expand/collapse events are not being fired. Could someone post the right code to hook-up these events??? This is what I'm doing:

in the rad grid client settings:
<ClientSettings Scrolling-AllowScroll="false" Selecting-AllowRowSelect="true" AllowExpandCollapse="true"
                    ClientEvents-OnRowSelecting="rgCon_OnRowSelecting"
                    ClientEvents-OnRowSelected="rgCon_OnRowSelected"
                    ClientEvents-OnRowDeselected="rgCon_OnRowDeselected"
                    ClientEvents-OnHierarchyExpanded="rgCon_OnHierarchyExpanded"
                    ClientEvents-OnHierarchyCollapsed="rgCon_OnHierarchyCollapsed">
                </ClientSettings>

in the javascript file:
rgCon_OnRowSelecting: function(sender, args){
        alert(1);
    },
    
    rgCon_OnRowSelected: function(sender, args){
        alert(2);
    },
    
    rgCon_OnRowDeselected: function(sender, args){
        alert(3);
    },
    
    rgCon_OnHierarchyExpanded: function(sender, args){
        alert(4);//not firing
    },
    
    rgCon_OnHierarchyCollapsed: function(sender, args){
        alert(5);//not firing
    },


thanks in advance

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Jun 2010, 10:55 AM
Hello Rafael,

I got the "OnHierarchyExpanded" event fired after setting the HierarchyLoadMode to Client.


Regards,
Princy.




Tags
Grid
Asked by
Rafael Enriquez
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or