This is a migrated thread and some comments may be shown as answers.
Floating window dragged out side view area
13 Answers 126 Views
This is a migrated thread and some comments may be shown as answers.
Nirav Patel
Top achievements
Rank 1
Nirav Patel asked on 12 Mar 2010, 01:33 PM
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

13 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 12 Mar 2010, 04:52 PM
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.
0
Paul Ridden
Top achievements
Rank 1
answered on 04 Aug 2010, 05:55 PM
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
0
RoadWarrior
Top achievements
Rank 1
answered on 02 Sep 2010, 03:35 AM
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..
0
Miroslav Nedyalkov
Telerik team
answered on 03 Sep 2010, 09:51 AM
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
0
Toshendra
Top achievements
Rank 1
answered on 12 Nov 2010, 12:04 AM
Do we have any workaround for this? It's very easy to drag the window out of the screen
0
Miroslav Nedyalkov
Telerik team
answered on 17 Nov 2010, 12:12 PM
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>>
0
Toshendra
Top achievements
Rank 1
answered on 22 Nov 2010, 10:36 PM
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


 

0
Miroslav Nedyalkov
Telerik team
answered on 24 Nov 2010, 04:25 PM
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
0
Doug
Top achievements
Rank 1
answered on 03 Aug 2011, 03:12 PM
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 
0
bg
Top achievements
Rank 1
answered on 03 Aug 2011, 07:03 PM
They are no longer available in Q2. I had the same issue. You can just use Top and Left and get the same results.
0
Doug
Top achievements
Rank 1
answered on 03 Aug 2011, 07:16 PM
Thanks
0
Mayra
Top achievements
Rank 1
answered on 21 Nov 2011, 09:47 PM
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
0
Miroslav Nedyalkov
Telerik team
answered on 22 Nov 2011, 10:25 AM
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 >>

Asked by
Nirav Patel
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Paul Ridden
Top achievements
Rank 1
RoadWarrior
Top achievements
Rank 1
Toshendra
Top achievements
Rank 1
Doug
Top achievements
Rank 1
bg
Top achievements
Rank 1
Mayra
Top achievements
Rank 1
Share this question
or