I have a rad tab and in each tab has some radeditors inside. I've set each radeditor to be autoresizeheight = true.
When I go to print the webpage, I have it set with css so that all the tabs print (set div's to display). However say I don't select a tab before I print, the tabs that I don't select will print the editors with scrollbars. The tabs that I have chosen will print with their heights set properly.
Is there anything I can do to force the autoresizeheight to run even if the editors are hidden?
Thanks
-Matt
When I go to print the webpage, I have it set with css so that all the tabs print (set div's to display). However say I don't select a tab before I print, the tabs that I don't select will print the editors with scrollbars. The tabs that I have chosen will print with their heights set properly.
Is there anything I can do to force the autoresizeheight to run even if the editors are hidden?
Thanks
-Matt
5 Answers, 1 is accepted
0
Lenny_shp
Top achievements
Rank 2
answered on 18 Mar 2010, 08:19 PM
Try putting this the RadEditor definition.
style="height:auto"
style="height:auto"
0
MNP
Top achievements
Rank 1
answered on 18 Mar 2010, 10:21 PM
I already have that in my code:
If the above code is in a hidden tab it will show scrollbars when it prints
Attached are screenshots of what it looks like when it prints. I'm thinking this is a css issue.
Any ideas?
| <h4>What Went Well</h4> |
| <div class="commenteditor"> |
| <telerik:RadEditor ID="txtWhatWentWell" runat="server" EditModes="Design" ToolbarMode="ShowOnFocus" ToolsFile="~/MNP/PartnerSummaries/BasicEditor.xml" |
| ToolsWidth="330px" Width="500px" AutoResizeHeight="true" Height="200px" style="height:auto;"> |
| <CssFiles> |
| <telerik:EditorCssFile Value="~/ExternalCssFiles/blank.css" /> |
| </CssFiles> |
| </telerik:RadEditor> |
| </div> |
If the above code is in a hidden tab it will show scrollbars when it prints
Attached are screenshots of what it looks like when it prints. I'm thinking this is a css issue.
Any ideas?
0
Accepted
Hi Matt,
By design, when RadEditor is placed inside a hidden container, it is not rendered at Page.Load in favor of performance. As a workaround for this behavior, you can use the following CSS:
This will overwrite the default settings of the RadMultiPageView in order to initialize the RadEditor.
Please note that this considered as a hack, and might not work in future releases.
Kind regards,
Dobromir
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.
By design, when RadEditor is placed inside a hidden container, it is not rendered at Page.Load in favor of performance. As a workaround for this behavior, you can use the following CSS:
div.rmpHiddenView { display: block; visibility: hidden; height: 0; overflow: hidden; }@media print { div.rmpHiddenView { visibility: visible; height: auto; overflow: visible; }}Please note that this considered as a hack, and might not work in future releases.
Kind regards,
Dobromir
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
Lenny_shp
Top achievements
Rank 2
answered on 22 Mar 2010, 06:09 PM
I have this and FF doesn't show scrollbars in print preview. I am not using radtab.
Telerik Support: I did notice that FF doesn't honor Height="25px" where IE8 does.
OnClientLoad="OnClientLoadRadEditor" AutoResizeHeight="True" Skin="Simple"
BorderStyle="None" BorderWidth="0px" style="height:auto"
EditModes="Design" ToolsFile="~\EmptyTools.xml" Height="25px" >
Telerik Support: I did notice that FF doesn't honor Height="25px" where IE8 does.
OnClientLoad="OnClientLoadRadEditor" AutoResizeHeight="True" Skin="Simple"
BorderStyle="None" BorderWidth="0px" style="height:auto"
EditModes="Design" ToolsFile="~\EmptyTools.xml" Height="25px" >
0
Hi Leonid,
This problem is not directly related to the RadEditor control but to the browser itself. RadEditor's content area is an editable IFRAME and there is a problem with IFRAMEs with height lesser than 150px in Mozilla / Gecko browser. This is a known browser bug but for now there is no fix for it from Mozilla.
All the best,
Dobromir
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.
This problem is not directly related to the RadEditor control but to the browser itself. RadEditor's content area is an editable IFRAME and there is a problem with IFRAMEs with height lesser than 150px in Mozilla / Gecko browser. This is a known browser bug but for now there is no fix for it from Mozilla.
All the best,
Dobromir
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.