Prevent docking on some sides of RadDocking component

9 posts, 0 answers
  1. Corrado Cavalli
    Corrado Cavalli avatar
    6 posts
    Member since:
    Feb 2007

    Posted 26 Aug 2009 Link to this post

    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
  2. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 26 Aug 2009 Link to this post

    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.
  3. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 27 Aug 2009 Link to this post

    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.
  4. Jason
    Jason avatar
    9 posts
    Member since:
    Jul 2008

    Posted 27 Aug 2009 Link to this post

    That sounds great! I am looking forward to the next internal release.
  5. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 28 Aug 2009 Link to this post

    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.
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 01 Sep 2009 Link to this post

    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.
  7. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 02 Sep 2009 Link to this post

    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.
  8. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 02 Sep 2009 Link to this post

    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.
  9. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 03 Sep 2009 Link to this post

    Hi Miroslav,

    Thanks for this.

    Cheers,

    James.
Back to Top