RadDock inside RadWindow

5 posts, 0 answers
  1. alvin shih
    alvin shih avatar
    13 posts
    Member since:
    Oct 2009

    Posted 23 Nov 2009 Link to this post

    I have rad dock inside a Rad Window and seems its not liking it.
    throwing NotSupportedException:Placing Docking control in a panel or control that measures it with infinite width or height is not supported

    I have my window inistially maximized but once I remove the maximize it throws this error.
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 23 Nov 2009 Link to this post

    Hello Alvin,

    You get this error, because the Docking control doesn't support to be measured with infinite size. You could fix this by setting Width and Height properties of the Docking control or the Width and Height properties of the RadWindow control.

    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. DevCraft banner
  4. alvin shih
    alvin shih avatar
    13 posts
    Member since:
    Oct 2009

    Posted 23 Nov 2009 Link to this post

    is there a way to not have fixed width and height?
    because i want it to resize automatically when the rad window is resized
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 24 Nov 2009 Link to this post

    Hi alvin shih,

    There is a way - just put RadDocking in container that will not measure it with infinity size (like Grid panel with RowDefinition.Height=* or ColumnDefinition.Width=*

    Let us know if you need more information.

    All the best,
    Hristo
    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.
  6. alvin shih
    alvin shih avatar
    13 posts
    Member since:
    Oct 2009

    Posted 24 Nov 2009 Link to this post

    I just set the AllowUnsafeMode to true and everything works fine.
Back to Top
DevCraft banner