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

Prevent docking on some sides of RadDocking component

8 Answers 62 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Corrado Cavalli
Top achievements
Rank 2
Corrado Cavalli asked on 26 Aug 2009, 03:51 PM
I need to prevent RadPanes to dock on some sides of RadDocking hosting control (e.g. I want them not to dock on top or bottom of it) is there any way to get this behavior?

About CanUserClose "X" issue:
I'm using latest beta versions (dated Aug. 21st) but the "X" when a RadPane with CanUserClose=false is still visible. I know about using PreviewWindowClose and I know that sometimes you deal with group of of RadPanes that might have different CanUserClose settings but think that when dragging/floating a single RadPane with CanUserClose=false the "X" shouldn't be visible.

Thanks,
-Corrado

8 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 26 Aug 2009, 09:21 PM
I believe conditional docking of radpanes is not possible currently, apparently it will appear in the Q3 release.

Is this still the case Telerik?

Cheers,

James.
0
Miroslav Nedyalkov
Telerik team
answered on 27 Aug 2009, 03:03 PM
Hello all,

The feature that will allow you to prevent some panes to be dropped in some areas will be available for the next internal build. You will able to do that by hooking up to the PreviewShowCompass event.

About the X button - if you are talking about the X button of the ToolWindow - this also will be fixed with the next latest internal build - the window won't close if there is a pane that cannot be closed in it.

To see these changes, just download the latest internal build at the end of the week (it should be available after Friday).

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jason
Top achievements
Rank 1
answered on 27 Aug 2009, 04:54 PM
That sounds great! I am looking forward to the next internal release.
0
James
Top achievements
Rank 1
answered on 29 Aug 2009, 03:32 AM
Hi Mirsolav,

The conditional display of the compass works great :)

I look forward to the ability to disable the docking cues against the left,top,right,bottom panegroups.

Cheers,

James.
0
Miroslav Nedyalkov
Telerik team
answered on 01 Sep 2009, 11:59 AM
Hi James,

We will think about some way to do this easily in future. For now you can use a custom approach to accomplish the task. The idea is to find the compass and hide the parts you don't want to use. The attached project demonstrates the idea.

Hope this helps.

Greetings,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 02 Sep 2009, 05:51 AM
Hi Miroslav,

Thanks for the example project, I can see how you can achieve this affect inside the compass.

Using that same concept, can I hide the Indicator Direction visual cues that live outside of the compass?

Turning off the compass is great, but I also want to turn off the other four docking visual cues that appear on the edges of the RadDock when you drag a pane. Does that make sense? I can post a screenshot if necessary.

Thanks again,

James.
0
Miroslav Nedyalkov
Telerik team
answered on 02 Sep 2009, 10:19 AM
Hello James,

The idea is almost the same. The only difference is the way you find the control. It is an instance of the RootCompass class. We may think about similar event for the RootCompass, because it may depend on what Panes you are dragging, but it shouldn't depend on the PaneGroup you are dragging them on.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 03 Sep 2009, 07:26 AM
Hi Miroslav,

Thanks for this.

Cheers,

James.
Tags
Docking
Asked by
Corrado Cavalli
Top achievements
Rank 2
Answers by
James
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Jason
Top achievements
Rank 1
Share this question
or