RadDock in Grid and auto hide pane issues

11 posts, 1 answers
  1. Lior ef
    Lior ef avatar
    49 posts
    Member since:
    Jan 2010

    Posted 21 Feb 2010 Link to this post

    hi,

    1. i have a dock control in a grid, the Height of the the row is set to "auto" and i get an exception:
    "Placing Docking control in a panel or control that measures it with infinite width or height is not supported in the current version. You can disable this error by setting the AllowUnsafeMode property of the RadDocking control."

    if the Height is set to a number or to " * " it's works fine.
    is this behavior normal?

    2. one other thing (a small one):
    when a pane is set to auto-hide, i place the mouse pointer on it and it shows, 
    then when i place the pointer on the top of the pane, 
    between the header text and the buttons the pane hides again, a little annoying, i've checked it on another 
    computer and this happens again.

    thanks in advance,

    Lior.


  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Feb 2010 Link to this post

    Hello Lior,

    As the exception says the Docking control doesn't support to be placed in a container that measures it with infinite size. This is a limitation of the Docking control.

    About your second question - this is expected behavior as the gap between the AutoHideArea popup and the pane's tab is actually outside the the AutoHideArea. Of course you could configure that by changing the control template of the AutoHideAreas and put the popup just next to the pane's tab.

    Hope this information is helpful.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Lior ef
    Lior ef avatar
    49 posts
    Member since:
    Jan 2010

    Posted 22 Feb 2010 Link to this post

    thanks for the answer.

    about the limitation of the control, is this something you're planning to change?

    thanks again
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Feb 2010 Link to this post

    Hello Lior,

    It is logged in our TODO list, but as the Docking control is meant to be the root element of a page and to occupy the whole space so we didn't assign very high priority to this task. If you share with us why do you need to place the Docking control into a row with height "auto" we could try to help you work-around this scenario.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Lior ef
    Lior ef avatar
    49 posts
    Member since:
    Jan 2010

    Posted 24 Feb 2010 Link to this post

    well, it's hard to say,
    we're still at the beginning and the UI architecture team are still working,
    so i asked that question to know if i'm asked.
    when i'll have a specific scenario i'll post it.

    thanks. 
  7. Mike
    Mike avatar
    1 posts
    Member since:
    May 2007

    Posted 22 Jul 2010 Link to this post

    I have a scenario. How about a Visual Studio like interface (which this docking is meant to emulate)? We have an area above and below all the docking panel behavior, a header and footer if you will. I think it would be extremely common to have some controls above the docking panels and the docking control would not be the root element in this common scenario.

    Short of setting AllowUnsafeMode="True", what is the exact XAML for creating a container that will hold the docking control and allow it to resize with the window? I've tried various Width="*" and Height="*" recommendations with no resolution.
  8. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 27 Jul 2010 Link to this post

    Hi Mike,

     The Docking control should work fine in such scenarios where you have some controls around it as long as the Docking control occupies the rest of the space in the page (that means it is not placed in a StackPanel, in a Grid row or column with dimension Auto or into a ScrollViewer).

    Could you please give us some more details about your scenario? It sounds to me that you don't need to set AllowUnsafeMode to True. If you could send us a sample project that demonstrates how you use the Docking control this would be very helpful in understanding your situation.

    All the best,
    Miroslav Nedyalkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Simon
    Simon avatar
    32 posts
    Member since:
    Apr 2007

    Posted 15 Sep 2010 Link to this post

    Hello Miroslav

    Do you have a sample project for Q2 WPF showing a RadRibbonBar at the top and then a RadDocking below it with height and width basically taking up the rest of the space?

    Regards,
    Simon
  10. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 16 Sep 2010 Link to this post

    Hello Simon,

    Please find attached a sample project in which is illustrated how you can arrange the RibbonBar and the Docking one above another in a Window.

    Hope it will help you. If you have any other questions please feel free to ask again.


    Best wishes,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. Simon
    Simon avatar
    32 posts
    Member since:
    Apr 2007

    Posted 17 Sep 2010 Link to this post

    Hello Konstantina

    If you change the MainWindow to a RadRibbonWindow you will get the infinite error.
    I actually got around it by using using the LayoutUpdated event and just setting the
    height and width of the RadDocking component inside the event.

    Regards,
    Simon
  12. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 22 Sep 2010 Link to this post

    Hi Simon,

     I've just test it but with AllowUnsafeMode="True" and it works as expected.
    Can you please find the attached example project and let me know if you still get an infinite layout loop?
    Thank you for your cooperation.

    Regards,
    Miro Miroslavov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WPF is Visual Studio 2017 Ready