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

Group created event

1 Answer 16 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Russell Mason
Top achievements
Rank 1
Russell Mason asked on 27 May 2010, 04:15 PM
Hi

I need to track when tabs change. I can do this by listening to the SelectionChanged event of a group. However, when the user drags panes out of the existing group and into other groups, groups get created dynamically as they do.

Is theres an event available so I know I need to start listening to these newly created groups? I can see that PaneStateChange fires but cant seem to find anything useful it is telling me.

Thanks
Russell Mason

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 01 Jun 2010, 01:48 PM
Hello Russell,

 You could listen for the RoutedEvent - this way you will get the SelectionCahnged for all of the groups in a one handler. Please refer to the following example:

public partial class MainPage : UserControl
{
    static MainPage()
    {
        EventManager.RegisterClassHandler(typeof(RadPaneGroup), RadPaneGroup.SelectionChangedEvent, new RoutedEventHandler(OnPaneGroupSelectionChanged));
    }
 
    private static void OnPaneGroupSelectionChanged(object sender, RoutedEventArgs e)
    {
        var group = sender as RadPaneGroup;
 
        if (group != null)
        {
            // TODO: Perform your action here.
        }
    }
 
    public MainPage()
    {
        InitializeComponent();
    }
}

Kind regards,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Docking
Asked by
Russell Mason
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or