Hello,
I would like to assign the Floating Toolbar with a behavior similar to the PageTop mode: will open on the top of the page, floating (pinned) by default, but will allow unpin and user reposition as option.
I set the Toolbar Mode to "Floating" and added the following code in OnClientLoad:
function OnClientLoad(editor, args) {
// Pin the Floating Toolbar
var wnd = editor.get_toolAdapter().get_window();
wnd.add_show(function () {wnd.togglePin();});
// Activate The Toolbar
editor.get_toolAdapter()._showToolbarHolder(true);
// Set Focus to the Editor
editor.setFocus()
// Move the Floating Toolbar to the Top
editor.get_toolAdapter().get_window().moveTo(0, 0);
}
However, it seems togglePin() function prevents the reposition of the Toolbar (Toolbar reposition works fine when togglePin() is commented out), can I integrate both functionalities?
Also (very different issue), is there a way to make the editor inherit all styles from the location it is opened (assuming div content area is used)? I know I can assign a class that includes all required styles but I would like the styles to be automatically inherited in the editor content area.
Thanks in advance!

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"> <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false"> <MasterTableView> <Columns> </Columns> </MasterTableView> </telerik:RadGrid> </telerik:RadAjaxPanel> <div id="div1" runat="server"> <table id="table1" runat="server" > <tr> <td align="center"> <asp:Label ID="lblName" runat="server" Font-Bold="true"> </asp:Label> </td> </tr> </table> </div> Code behind. protected void Page_Load(object sender, EventArgs e) { try { if (!Page.IsPostBack) { RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadGrid1, lblName, null); } } }
POST http://localhost/Page.aspx 500 (Internal Server Error) Telerik.Web.UI.WebResource.axd:3Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 Telerik.Web.UI.WebResource.axd:9