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

Determine RadPane best location upon creation??

3 Answers 31 Views
Docking
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 10 Sep 2011, 10:39 PM
Hi guys,

Firstly like to say I really love the RadDocking control.  In our application we create RadPanes programmatically and add them to the RadDocking control the same way.  Currently we create all RadPanes at point 150,150 but obviously if the user keeps adding them they stack.

I'm trying to determine the best way to work out where a "free space" might be on the RadDocking control when I add the RadPane so as not to overlay too many other panes previously added.  I thought about iterating through the current panes and writing a complex function to determine their layout but I thought I'd first ask if there's something currently available or if anyone has done this before?

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 15 Sep 2011, 12:54 PM
Hello David,

I would suggest setting the ScrollViewer.HorizontalScrollBarVisibility attached property to the RadPaneGroup in the DocumentHost. This will place the panes into a scrollviewer and it will arrange them automatically.

Hope this helps.

Kind regards,
George
the Telerik team

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

0
David
Top achievements
Rank 1
answered on 16 Sep 2011, 08:07 AM
Thanks for the reply, but I dont understand how this fixes my problem.  I tried add this in programmatically (remember all panes/group, etc are being built dynamically when a user presses a button), but it made no difference.  All RadPanes (within the RadGroup attached to the RadDocking) where still created at point 0,0.

Maybe you could provide a code example please?
0
George
Telerik team
answered on 16 Sep 2011, 03:09 PM
Hello David,

 
Could you please attach a screenshot with your scenario? This could shed some light on the problem and it will help us in creating a project that will suit your needs.

All the best,
George
the Telerik team

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

Tags
Docking
Asked by
David
Top achievements
Rank 1
Answers by
George
Telerik team
David
Top achievements
Rank 1
Share this question
or