Docking Resizing Issue with RadHtmlPlaceholder

4 posts, 1 answers
  1. steve
    steve avatar
    23 posts
    Member since:
    Jul 2009

    Posted 15 Sep 2009 Link to this post

    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...

    1 <telerikDocking:RadDocking> 
    2  
    3  <telerikDocking:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft" MinWidth="380">  
    4   <telerikDocking:RadPaneGroup> 
    5    <telerikDocking:RadPane x:Name="SearchPane" Header=" Search By... ">  
    6                   
    7     <!-- start of tabed stuff--> 
    8     <telerikNavigation:RadTabControl Style="{StaticResource TabControlStyle1}">  
    9      <!-- menu stuff -->                              
    10     </telerikNavigation:RadTabControl> 
    11     <!-- end of tabed stuff--> 
    12                   
    13    </telerikDocking:RadPane> 
    14   </telerikDocking:RadPaneGroup> 
    15  </telerikDocking:RadSplitContainer> 
    16  
    17  <telerikDocking:RadDocking.DocumentHost> 
    18   <telerikDocking:RadSplitContainer> 
    19    <telerikDocking:RadPaneGroup> 
    20     <telerikDocking:RadPane> 
    21      <StackPanel x:Name="ResultsPage" Style="{StaticResource ResultsStackPanel}"/>  
    22     </telerikDocking:RadPane> 
    23    </telerikDocking:RadPaneGroup> 
    24   </telerikDocking:RadSplitContainer> 
    25  </telerikDocking:RadDocking.DocumentHost> 
    26    
    27 </telerikDocking:RadDocking> 


  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 16 Sep 2009 Link to this post

    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.
  3. Dave
    Dave avatar
    26 posts
    Member since:
    Jun 2009

    Posted 24 Sep 2009 Link to this post

    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?

  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 25 Sep 2009 Link to this post

    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.
Back to Top