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

Docking Resizing Issue with RadHtmlPlaceholder

3 Answers 77 Views
Docking
This is a migrated thread and some comments may be shown as answers.
steve
Top achievements
Rank 1
steve asked on 15 Sep 2009, 02:46 PM
I have silverlight app that i have split into two. One side for a menu and the other side to display results in a RadHtmlPlaceholder that is added programatically to the StackPanel ResultsPage. Everything is working as expected. Except; if you resize the SplitContainer by draging the resizer over the RadHtmlPlaceholder, the resizer becomes stuck and the SplitContainer wont resize. This probably due to the fact that i am trying to resize into a space on the host page as I think the RadHtmlPlaceholder is just a iFrame on the host page that the silverlight app allows to show through due to the windowless property being set.

Is there any way to stop this behaviour. Or is it a bug that telerik allready knows about...

<telerikDocking:RadDocking> 
 
 <telerikDocking:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft" MinWidth="380">  
  <telerikDocking:RadPaneGroup> 
   <telerikDocking:RadPane x:Name="SearchPane" Header=" Search By... ">  
                  
    <!-- start of tabed stuff--> 
    <telerikNavigation:RadTabControl Style="{StaticResource TabControlStyle1}">  
     <!-- menu stuff -->                              
    </telerikNavigation:RadTabControl> 
    <!-- end of tabed stuff--> 
                  
   </telerikDocking:RadPane> 
  </telerikDocking:RadPaneGroup> 
 </telerikDocking:RadSplitContainer> 
 
 <telerikDocking:RadDocking.DocumentHost> 
  <telerikDocking:RadSplitContainer> 
   <telerikDocking:RadPaneGroup> 
    <telerikDocking:RadPane> 
     <StackPanel x:Name="ResultsPage" Style="{StaticResource ResultsStackPanel}"/>  
    </telerikDocking:RadPane> 
   </telerikDocking:RadPaneGroup> 
  </telerikDocking:RadSplitContainer> 
 </telerikDocking:RadDocking.DocumentHost> 
   
</telerikDocking:RadDocking> 


3 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 16 Sep 2009, 02:27 PM
Hello Stephen,

As you correctly noticed this is not working, because the Silverlight doesn't get the mouse events when the mouse is on the IFrame. Unfortunately this cannot be fixed. You could work it around by setting the ShowResizePreview property of the Docking control to false.

Hope this helps.

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
Dave
Top achievements
Rank 1
answered on 24 Sep 2009, 03:56 PM

This work around works ok except there seems to be a slight problem if you move the mouse too fast into the RadHtmlPlaceholder area it seems to lose the grip.  Is there a way to capture the mouse like when you do Drag and Drop?

0
Miroslav Nedyalkov
Telerik team
answered on 25 Sep 2009, 12:33 PM
Hi Dave,

Drag and drop also won't work in this scenario, because even when the mouse is captured, the mouse events are stolen by the IFrame.

Kind 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.
Tags
Docking
Asked by
steve
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Dave
Top achievements
Rank 1
Share this question
or