Skip to main content

ASPxClientNavBar.ExpandedChanged Event

Fires on the client side after a group’s expansion state has been changed.

Declaration

ExpandedChanged: ASPxClientEvent<ASPxClientNavBarGroupEventHandler<ASPxClientNavBar>>

Event Data

The ExpandedChanged event's data class is ASPxClientNavBarGroupEventArgs. The following properties provide information specific to this event:

Property Description
group Gets the group object related to the event.

Remarks

Write a ExpandedChanged event handler to perform specific actions on the client side each time after a group’s expansion state has been changed. You can use the event parameter’s ASPxClientNavBarGroupEventArgs.group property to identify the group which has been expanded or collapsed.

Example

...
    <ClientSideEvents ExpandedChanged="function(s, e) {
        if(e.group.GetExpanded() == true){ 
            CollapseAllGroupsButOne(e.group.index);
        }
    }" />
...
See Also