I have a RadEditor inside an Ajax tab panel (AjaxControlToolkit -> TabContainer -> TabPanel). Property ToolbarMode is set to ShowOnFocus
<
rad:RadEditor ID="ed1" ToolbarMode="ShowOnFocus" runat="server"/>
When the editor is clicked, the toolbar shows as a vertical line and none of the tools are shown. The same code works fine (toolbar shows as expected) when the editor is not inside a TabPanel.
How do I fix this issue? Thanks.
5 Answers, 1 is accepted
0
Accepted
Hi Lerac,
Please, use the following code called on the editor's OnClientLoad event to achieve the desired behavior:
Note that for this code to work, you need to use the latest version of RadEditor "Prometheus" (Q3 2007 SP1).
Best regards,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please, use the following code called on the editor's OnClientLoad event to achieve the desired behavior:
| <script type="text/jscript"> |
| function OnClientLoad(editor, args){ |
| var wnd = editor.get_toolAdapter().get_toolbarHolder(); |
| wnd.setSize(700, null);//here set the desired width |
| wnd.hide(); |
| } |
| </script> |
Note that for this code to work, you need to use the latest version of RadEditor "Prometheus" (Q3 2007 SP1).
Best regards,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Lerac
Top achievements
Rank 1
answered on 07 Feb 2008, 05:38 PM
Thanks.
0
Hi Lerac,
I am glad that the issue you were facing is now resolved.
Please do not hesitate to contact us if you have any additional questions.
It was pleasure for me to assist you. Wish you a great day,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I am glad that the issue you were facing is now resolved.
Please do not hesitate to contact us if you have any additional questions.
It was pleasure for me to assist you. Wish you a great day,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
A
Top achievements
Rank 1
answered on 16 Jun 2008, 07:02 PM
Hi,
I am seeing the same issue and I tried the solution above however the wnd variable is undefined when the code is executed in the OnClientLoad event of the RadEditor.
I am using the 2008.1.611.35 release (emailed to me from support).
I am using the ShowOfFocus toolbarmode as well and am creating the RadEditor programmatically in CodeBehind of the ASPX page.
Is there any way I can call this code when the user clicks on the RadEditor? I tried assigning a OnFocus event via server side code in RadEditor.PreRender() MyEditor.attributes.Add("onfocus", "MyHandler();") but it is not being fired.
Thanks, Andy
I am seeing the same issue and I tried the solution above however the wnd variable is undefined when the code is executed in the OnClientLoad event of the RadEditor.
I am using the 2008.1.611.35 release (emailed to me from support).
I am using the ShowOfFocus toolbarmode as well and am creating the RadEditor programmatically in CodeBehind of the ASPX page.
Is there any way I can call this code when the user clicks on the RadEditor? I tried assigning a OnFocus event via server side code in RadEditor.PreRender() MyEditor.attributes.Add("onfocus", "MyHandler();") but it is not being fired.
Thanks, Andy
0
Hi Andy,
The original issue (toolbar width 0) has been fixed and the fix will be available tomorrow as part of the RadControls Q1 2008 Service Pack 2 release.
Greetings,
Lini
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The original issue (toolbar width 0) has been fixed and the fix will be available tomorrow as part of the RadControls Q1 2008 Service Pack 2 release.
Greetings,
Lini
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center