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

Open document as inactive

2 Answers 73 Views
Docking
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 27 May 2015, 09:35 PM

Hello,

I was wondering, is it possible to add a new document to the document host but don't immediately make that new document active/visible? To clarify, the behavior I'm looking for is like in Chrome, when you middle-click a link, it opens the link in a new tab, but doesn't switch to it, it just opens it in the background.

What I'm trying to do is allow users to quickly open multiple tabs. This is tough to do when you have to keep switching back to the original tab that triggers the new tabs.

Thanks,

Joel

2 Answers, 1 is accepted

Sort by
0
Accepted
Kalin
Telerik team
answered on 28 May 2015, 08:31 AM
Hi Joel,

What you can do would be to manually active the needed Pane after the newly created Pane has been added. In order to do so you can simply set the IsActive property of RadPane to True or you use the ActivePane property of RadDocking.

Hope this helps.

Regards,
Kalin
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
JP
Top achievements
Rank 1
answered on 28 May 2015, 02:55 PM

Hi Kalin,

I was able to get this working using your advice. What I ended up doing was using the SelectedPane property of the RadPaneGroup that was inside the DocumentHost, keeping a reference to it, then adding my new pane as usual. Then, immediately after adding the pane is set IsActive to True on the previously selected pane.

Thanks for your help!

Joel

Tags
Docking
Asked by
JP
Top achievements
Rank 1
Answers by
Kalin
Telerik team
JP
Top achievements
Rank 1
Share this question
or