Floating window dragged out side view area

14 posts, 0 answers
  1. Nirav Patel
    Nirav Patel avatar
    10 posts
    Member since:
    Jul 2009

    Posted 12 Mar 2010 Link to this post

    Hi Telerik,
    I am using the Docking control. I am using three RadPane controls in side a Dockpanel.
    When I make any of the pane as Floating window and drag it around, once I drag the floating window outside the view area of the screen, I cannot get it back in the view are. I lost the control over the floating window.

    Is there a way that I can restrict the floating windows cannot be dragged outside the certain boundry?

    Regards...
    Nirav
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 12 Mar 2010 Link to this post

    Hi Nirav,

    Unfortunately there is no feature that lets you restrict the ToolWindow movement. We will log you request and think about adding such feature.

    Best wishes,
    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.
  3. DevCraft banner
  4. Paul Ridden
    Paul Ridden avatar
    35 posts
    Member since:
    Mar 2007

    Posted 04 Aug 2010 Link to this post

    Hi

    I second that. I just 'lost' a window and because I save layout it was difficult to get it back (had to reset layout).

    Thanks
    Russell Mason
  5. RoadWarrior
    RoadWarrior avatar
    45 posts
    Member since:
    Jan 2010

    Posted 01 Sep 2010 Link to this post

    This is a pretty huge oversite.  Note that RadWindow already implements this functionality.  

    RadWindow radWindow = new RadWindow();
    radWindow
    .IsRestricted = true;


    Also consider the impact this has on scenarios where the Docking layout is persisted.   A lost window become lost permanently.  Can you a please provide a workaround.  I assume the approach taken with RadWindow would apply..
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 03 Sep 2010 Link to this post

    Hi Rick,

    We have added this issue in our Public Issue Tracking System (PITS). You can view it here. You can vote for it, track its status and see when it is going to be implemented.

    Greetings,
    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
  7. Toshendra
    Toshendra avatar
    16 posts
    Member since:
    Jun 2009

    Posted 11 Nov 2010 Link to this post

    Do we have any workaround for this? It's very easy to drag the window out of the screen
  8. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 17 Nov 2010 Link to this post

    Hello Toshendra,

     Currently there is no way to restrict a ToolWindow to not go outside of the screen. Although you can use the events of the ToolWindow to implement this yourself. I prepared an example that demonstrates the idea - an attached property set trough an implicit style to the ToolWindow control.

    Please refer to the attached project.

    Regards,
    Miroslav Nedyalkov
    the Telerik team
    See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
  9. Toshendra
    Toshendra avatar
    16 posts
    Member since:
    Jun 2009

    Posted 22 Nov 2010 Link to this post

    In My case I am creating floating  pane in the code. I am not sure how to apply the attched property that you have created.
    If  I apply implicit style it doesn't work, Here is my code.

    private void ShowNewsView(NotificationMessage msg)

    {
    UserControl view = new UserControl ();
     view.DataContext = msg.Sender;
    RadSplitContainer container = GetRadSplitContainer(view, "News", new Size(400, 300));
     radDocking1.Items.Add(container);

    }

     private static RadSplitContainer GetRadSplitContainer(UserControl view, string header, Size size)
            {
                RadSplitContainer container = new RadSplitContainer() { HorizontalAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Stretch };
                RadDocking.SetDockState(container, DockState.FloatingOnly);
                RadDocking.SetFloatingSize(container, size);
                RadDocking.SetFloatingLocation(container, new Point(250, 50));
                RadPaneGroup radPaneGroup = new RadPaneGroup();
                RadPane radPane = new RadPane()
                {
                    CanUserPin = false,
                    CanDockInDocumentHost = true,
                    Content = view,
                    Header = header,
                };

                radPaneGroup.Items.Add(radPane);
                container.Items.Add(radPaneGroup);
                radPaneGroup.SetValue(RestrictToolWindow.IsRestrictedProperty, true);
                return container;
            }

     

    Your Help will be appreciated! Thanks


     

  10. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 24 Nov 2010 Link to this post

    Hello Toshendra,

     It doesn't matter how you create the panes - the implicit style should apply anyway. The problem must be in something else. Could you please open a support ticket and send us a sample project that reproduces the problem? This would help us investigate what the problem is.

    All the best,
    Miroslav Nedyalkov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  11. Doug
    Doug avatar
    19 posts
    Member since:
    Jun 2010

    Posted 03 Aug 2011 Link to this post

    This workaround (RestrictToolWindow.cs) doesn't seem to work for the latest release.  I am getting errors that HorizontalOffset and VerticalOffset properties do not exists on Telerik.Windows.Controls.Docking.Toolwindow.  It worked fine before I upgraded to the latest release.  Any ideas?  

    Doug 
  12. bg
    bg avatar
    19 posts
    Member since:
    Jul 2006

    Posted 03 Aug 2011 Link to this post

    They are no longer available in Q2. I had the same issue. You can just use Top and Left and get the same results.
  13. Doug
    Doug avatar
    19 posts
    Member since:
    Jun 2010

    Posted 03 Aug 2011 Link to this post

    Thanks
  14. Mayra
    Mayra avatar
    18 posts
    Member since:
    Oct 2011

    Posted 21 Nov 2011 Link to this post

    I see the status is resolved on Issue ID 2584 - Add property to the Docking control for RestrictedArea and IsRestricted (like the Window control).
    Can anyone please tell me where I can find an example where they have the solution?
    Your help will be much appreciated it.
    Regards
  15. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Nov 2011 Link to this post

    Hello Mayra,

    There is no example for this feature yet. To enable the feature you need to set the IsRestricted property of the RadDocking control to true and to set the RestrictedAreaMargin to the desired value. RestrictedAreaMaring is of type Thickness and represents the the offset from the Silverlight plugin which restricts the RadWindow control. We are currently working on a help article about this feature.

    Hope this helps.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner