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:
Please suggest some solution.
Thanks
Ankur
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
///Ref Link http://demos.telerik.com/aspnet-ajax/editor/examples/settingcontentareadefaults/defaultcs.aspx
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