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

how to trap selected document change?

2 Answers 144 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Shaihan
Top achievements
Rank 1
Shaihan asked on 09 Mar 2010, 07:51 AM
how do i know when a document is selected in RadDock? is there any event fired when the selected document window changes?

i have tried using the Selected event of documentTabStrip under the RadDock but it doesn't fire when the selection is changed

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 11 Mar 2010, 10:08 AM
Hi Shaihan Murshed,

The event that is fired when you select a DocumentWindow/ToolWindow is the ActiveWindowChanged event of RadDock:
public Form1()
{
    InitializeComponent();
  
    this.radDock1.ActiveWindowChanged += new Telerik.WinControls.UI.Docking.DockWindowEventHandler(radDock1_ActiveWindowChanged);
}
  
void radDock1_ActiveWindowChanged(object sender, Telerik.WinControls.UI.Docking.DockWindowEventArgs e)
{
    throw new NotImplementedException();
}

All the best,
Nikolay
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.
0
Shaihan
Top achievements
Rank 1
answered on 12 Mar 2010, 10:51 AM
thanks....i have already figured that out though
Tags
Dock
Asked by
Shaihan
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Shaihan
Top achievements
Rank 1
Share this question
or