Floating toolbar bug with ToolProviderID Property.

4 posts, 0 answers
  1. Ankur
    Ankur avatar
    4 posts
    Member since:
    Dec 2012

    Posted 04 Dec 2012 Link to this post

    Hi,

    I am using RadEditor in our grid for each row and column but in edit mode (Multi Edit- where all RadEditors are in edit mode) I am having problem in getting the toolbar for all the RadEditors (when using ToolBarMode as ShowOnFocus and ToolBarProviderId same for all the RadEditor Controls for better Performance).

    Note: Edit all the Rows and Columns at the same time causes this problem.

    I am dynamically generating the RadEditors using the below code:

    private DerivedRadEditor CreateRadEditor(bool isPreviewMode)
      
    {
      
    if (this.radMemo == null)
      
    {
      
    this.radMemo = new DerivedRadEditor();
      
    //Translation 
      
    this.radMemo.Language = Thread.CurrentThread.CurrentUICulture.Name;
      
    this.radMemo.ID = this.ID + "rm";
      
    this.radMemo.ToolbarMode = EditorToolbarMode.ShowOnFocus;
      
    this.radMemo.OnClientCommandExecuting = "OnClientCommandExecuting";
      
    this.radMemo.EnableViewState = false;
      
    //this.radMemo.Skin = "WebBlue";
      
    this.radMemo.StripFormattingOptions = EditorStripFormattingOptions.NoneSupressCleanMessage;
      
    ///Setting default style for RadEditor Content Area
      
      
    radMemo.ContentAreaCssFile = "~/client/CSS/EditorContentAreaStyles.css";
      
      
    if (Page.Items["FirstRadEditor"] == null)
      
    {
      
    Page.Items["FirstRadEditor"] = radMemo;
      
    }
      
    else
      
    {
      
    radMemo.ToolProviderID = ((DerivedRadEditor)Page.Items["FirstRadEditor"]).ID;
      
    }
      
    if (isPreviewMode)
      
    {
      
    this.radMemo.EditModes = EditModes.Preview;
      
    radMemo.ToolsFile = "~/client/XML/RadEditorTools/MemoPreviewTools.xml";
      
    }
      
    else
      
    {
      
    this.radMemo.EditModes = EditModes.Design;
      
    radMemo.ToolsFile = "~/client/XML/RadEditorTools/MemoDefaultTools.xml";
      
    }
      
    // Removed reuse the tools from another RadEditor code as it was not working with Floating mode
      
    //Adding Paste as Cross reference HTML
      
    //EditorTool pastCrossReference = new EditorTool("PasteCrossReference");
      
    //this.radMemo.ContextMenus.FindByTagName("*").Tools.Add(pastCrossReference);
      
     
      
    this.Controls.Add(radMemo);
      
    HiddenField hdnRADEditorAvailable = (HiddenField)this.Page.FindControl("hdnIsRADEditorAvailable");
      
    if (hdnRADEditorAvailable != null && hdnRADEditorAvailable.Value != "1")
      
    {
      
    hdnRADEditorAvailable.Value = "1";
      
    }
      
    }
      
    return this.radMemo;
      
    }

    Please suggest some solution.

    Thanks
    Ankur
  2. Ankur
    Ankur avatar
    4 posts
    Member since:
    Dec 2012

    Posted 04 Dec 2012 Link to this post

    Please note that in above post problem is in both cases of EditToolBarMode(ShowOnFocus and Floating).
  3. Ankur
    Ankur avatar
    4 posts
    Member since:
    Dec 2012

    Posted 05 Dec 2012 Link to this post

    Attached screenshot of java script for reference.(Error comes when I click on RadEditor in Edit mode)
  4. Rumen
    Admin
    Rumen avatar
    14103 posts

    Posted 06 Dec 2012 Link to this post

    Hi,

    Could you please test the same scenario with the latest Q3 2012 SP1 version of RadEditor (releases yesterday)? If the problem still persists, please isolate it in a simple working project so that we can replicate the problem locally and be able to debug it.

    Best regards,
    Rumen
    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.
Back to Top