This is a migrated thread and some comments may be shown as answers.
RadEditor's DockingZone Work in RibbonBar Mode ?
1 Answer 34 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
gzzn asked on 14 May 2012, 05:21 PM

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebFormEditorDock.aspx.cs" Inherits="X.Model.GOV.Public.WebFormEditorDock" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<head runat="server">
<title>RadEditor RibbonBar outerdiv Test</title>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<table width="640px" border="1" style="border-collapse:collapse;">
<tr><td><div id="outerdiv"></div></td></tr>
<tr><td><input type="text" runat="server" value="Please Input Title Here ..." style="width:99%;" /></td></tr>
<telerik:RadEditor ID="RadEditor1" runat="server" ToolbarMode="Default" ToolsFile="~/xml/EditorRibbonBarDock.xml" Width="100%">
<Content>Please Input Text Here ...</Content>

when i change ToolbarMode="Default" as ToolbarMode="RibbonBar", it work wrong.


<?xml version="1.0" encoding="utf-8" ?>
<tools name="Base" tab="Base" Enabled="true" DockingZone="outerdiv">
<tool name="PasteStrip" size="large" />
<tool name="Cut" size="medium" />
<tool name="Copy" size="medium" shortcut="CTRL+C" />
<tool name="Print" size="medium" shortcut="CTRL+P" />

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 16 May 2012, 03:49 PM

You can achieve the requested ribbonbar in an outer div functionality using the following code:

<div id="RibbbonBarWrapper" class="RadEditor">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<telerik:RadEditor ID="RadEditor1" runat="server" OnClientLoad="OnClientLoad" ToolbarMode="RibbonBar">
<script type="text/javascript">
function OnClientLoad(editor) {

You can also move the RibbbonBarWrapper div to the desired location on the page.

the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question