Docking hiding Problem

4 posts, 1 answers
  1. Vivek
    Vivek avatar
    15 posts
    Member since:
    Jun 2011

    Posted 29 Jun 2011 Link to this post

    Hi Team,

    I am using rad docking in my project. I want to implement a print preview button click . On click of print preview  button the dock panel should be disable.

    I have 4 dock panel , but when i am going to disable all 4 dock panel the solution is not working. and when i left one dock panel then 3 dock panel is working fine as like as i want.

    Why its behaving like that can you tell me please and the solution for this problem.

    Thanks.
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 04 Jul 2011 Link to this post

    Hello Vivek,

     As I don't fully understand what you want to achieve we'll need some more details about what you need to achieve. If you could share with us some code or a sample project that would be of great help in understanding what the problem is and will tel us better assist you.

    Kind regards,
    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. DevCraft banner
  4. Vivek
    Vivek avatar
    15 posts
    Member since:
    Jun 2011

    Posted 05 Jul 2011 Link to this post

    Hi Team,

    I am 4 docking panel in my project. while clicking of printing button i want to disable all 4 dock panel.

    for disable dockpanel i am using the following code.

    Tel_pages,Tel_Layers,Blocks_Panel (These three are dock panel) But one dock panel i commented because while using
    all dock panel the solution is not working.

    Please find the xmal and c# code with the screenshot for before or after button click.
    private void Preview_Click(object sender, RoutedEventArgs e)
           {
     
               Rad_Home.Visibility = System.Windows.Visibility.Collapsed;
               Rad_Print_Preview.Visibility = System.Windows.Visibility.Visible;
               Rad_Print_Preview.IsSelected = true;
               Tel_RadDocumentPane.Header = "";
               Tel_pages.Visibility = System.Windows.Visibility.Collapsed;
               Tel_Layers.Visibility = System.Windows.Visibility.Collapsed;
               Blocks_Panel.Visibility = System.Windows.Visibility.Collapsed;
              // Layouts_Panel.Visibility = System.Windows.Visibility.Collapsed;
               viewport.ZoomAllForNonFullScreenMode();
               //viewport.PrintPage();
               
                
                
                
           }
    <telerik:RadPane Header="Layers" IsPinned="False"  Name="Tel_Layers"/ >
    <telerik:RadPane Header="Pages"  Name="Tel_pages" IsPinned="False" />
    <telerik:RadPane Header="Blocks" IsPinned="False" Content="Blocks" Name="Blocks_Panel" />
    <telerik:RadPane Header="Layouts" IsPinned="False" Name="Layouts_Panel" />
  5. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 08 Jul 2011 Link to this post

    Hello Vivek,

     It seems there is a problem with the TabControl and it fails to render correctly when there are collapsed TabItems in it. What I would suggest you is to make them very small (1px big). Here is the code that demonstrates my suggestion:

    Tel_pages.Width = Tel_pages.Height = 1;
    Tel_Layers.Width = Tel_Layers.Height = 1;
    Blocks_Panel.Width = Blocks_Panel.Height = 1;
    Layouts_Panel.Width = Layouts_Panel.Height = 1;
    Hope this helps. Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top