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.
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.
3 Answers, 1 is accepted
0
Hello Vivek,
Miroslav Nedyalkov
the Telerik team
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
0
Vivek
Top achievements
Rank 1
answered on 05 Jul 2011, 08:49 AM
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.
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"
/>
0
Accepted
Hello Vivek,
Hope this helps.
Best wishes,
Miroslav Nedyalkov
the Telerik team
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;
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!