Open document as inactive

3 posts, 1 answers
  1. JP
    JP avatar
    30 posts
    Member since:
    Apr 2007

    Posted 27 May 2015 Link to this post

    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. Answer
    Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 28 May 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. JP
    JP avatar
    30 posts
    Member since:
    Apr 2007

    Posted 28 May 2015 in reply to Kalin Link to this post

    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

Back to Top