Rad Docking inside a window

11 posts, 0 answers
  1. reema
    reema avatar
    30 posts
    Member since:
    Oct 2008

    Posted 04 May 2009 Link to this post

    hi,
    why dose the Rad Docking  control disappear when I add it inside  Rad Window?

    <telerik:RadWindow x:Name="win"  >

     

    <Grid>

     

     

     

    <radDock:RadDocking >

     

     

     

    <radDock:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft">

     

     

     

    <radDock:RadPaneGroup>

     

     

     

    <radDock:RadPane Header="Pane Left 1" Content="Pane Left 1" />

     

     

     

    </radDock:RadPaneGroup>

     

     

     

    </radDock:RadSplitContainer>

     

     

     

    </radDock:RadDocking>

     

     

     

    </Grid>

     

     

     

    </telerik:RadWindow>

    thx

     

  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 05 May 2009 Link to this post

    Hi reema,

    Did you open the RadWindow in the page loaded event? If not then this is the default behavior of RadWindow - when loaded RadWindow remove it self from the layout. Then when Show or ShowDialog method is called RadWindow shows inside of Popup.
    Please note that you call Show or ShowDialog in Page Loaded event (no earlier) or RadWindow won't work (this is Silverlight issue with popup control).

    Let us know if you need more information.

    Sincerely yours,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. reema
    reema avatar
    30 posts
    Member since:
    Oct 2008

    Posted 05 May 2009 Link to this post

    hi

    Okay, it's working with  page loaded event but in my case I need to open the RadWindow in RadTreeViewItem_Selected event...

    thx

  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 06 May 2009 Link to this post

    Hello reema,

    This is a bug in RadDocking. We found it and the fix will be included in our next build. As a workaround for now you can use the following code, but remember to remove it as soon as you upgrade your RadControls for Silverlight. Right after showing the window, add the following:
    foreach (var c in docking.Items 
                        .Where(i => i is RadSplitContainer) 
                        .Cast<RadSplitContainer>()) 
        if (c.Visibility == Visibility.Collapsed && 
            c.Items 
            .Where(i => i is UIElement) 
            .Cast<UUIElement() 
            .Count(item => item.Visibility != Visibility.Collapsed) > 0) 
        { 
            c.Visibility = Visibility.Visible; 
        } 

    where docking is the Docking control in your window.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  5. reema
    reema avatar
    30 posts
    Member since:
    Oct 2008

    Posted 07 May 2009 Link to this post


    I have this error now..
    Error 1 The name 'UUIElement' does not exist in the current context ....

    thx
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 May 2009 Link to this post

    Hello reema,

    I'm really sorry, I pressed "U" while I was formatting the code. Please, remove the "U" in front of the UIElement in the line ".Cast<UUIElement()".

    This should solve the problem.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  7. reema
    reema avatar
    30 posts
    Member since:
    Oct 2008

    Posted 08 May 2009 Link to this post

    hi,

    the error now..
    Error 1 'System.Windows.UIElement' is a 'type' but is used like a 'variable' 

    thx
  8. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 08 May 2009 Link to this post

    Hi reema,

    I didn't notice that the ">" is missing, too. Here is the correct code. I hope I didn't break it again while formatting...

    Miroslav Nedyalkov
  9. reema
    reema avatar
    30 posts
    Member since:
    Oct 2008

    Posted 08 May 2009 Link to this post

    hi Miroslav,

    sorry but where is the code?

    thx
  10. reema
    reema avatar
    30 posts
    Member since:
    Oct 2008

    Posted 09 May 2009 Link to this post

    hi,

     also I tryed to copy the example  http://demos.telerik.com/silverlight/#Docking/SplitContainers but I got  "AG_E_UNKNOWN_ERROR"
    actually what i need is to  add a tab control beside the dock control so if  hide dock control the tab will be expanded..

    thx
     
  11. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 May 2009 Link to this post

    Hi reema,

    Could you please open a support ticket and attach the project that gives you the error to let us investigate the problem.

    I'm really sorry about the missing code. In the meantime, you can download the latest internal build, where problem is fixed and you will not need this work-around any more. The version is 2009.1.508

    Hope this helps.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Back to Top