This is a migrated thread and some comments may be shown as answers.

Floating toolbar bug with ToolProviderID Property.

3 Answers 92 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ankur
Top achievements
Rank 1
Ankur asked on 04 Dec 2012, 07:02 AM
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

3 Answers, 1 is accepted

Sort by
0
Ankur
Top achievements
Rank 1
answered on 04 Dec 2012, 07:30 AM
Please note that in above post problem is in both cases of EditToolBarMode(ShowOnFocus and Floating).
0
Ankur
Top achievements
Rank 1
answered on 05 Dec 2012, 12:42 PM
Attached screenshot of java script for reference.(Error comes when I click on RadEditor in Edit mode)
0
Rumen
Telerik team
answered on 06 Dec 2012, 02:14 PM
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.
Tags
Editor
Asked by
Ankur
Top achievements
Rank 1
Answers by
Ankur
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or