When trying to batch edit cell values of the Grid via e.g., RadEditor (GridHTMLEditorColumn or RadEditor in EditItemTemplate of GridTemplateColumn) the cell value always result to a plain text.
<telerik:RadEditor ID=
"RadEditor1"
runat=
"server"
OnClientLoad=
"OnClientLoad"
>
</telerik:RadEditor>
<script type=
"text/javascript"
>
function
OnClientLoad(editor, args) {
editor.get_filtersManager().getFilterByName(
"MozillaKeepStylesString"
).set_enabled(
false
);
editor.get_filtersManager().getFilterByName(
"MetaTagAttributesFilter"
).set_enabled(
false
);
editor.get_filtersManager().getFilterByName(
"[Set_Here_Filter_Name]"
).set_enabled(
false
);
}
</script>
In batch edit mode when we edit Rad editor control cell it throws client side alert error if we have html tag as value. Error like Error while executing filter StripScriptsFilter - TypeError: Cannot read property 'replace' of null Error while executing filter EncodeScriptsFilter - TypeError: Cannot read property 'replace' of null Error while executing filter StripCssExpressionsFilter - TypeError: Cannot read property 'replace' of null Error while executing filter MozillaKeepStylesString - TypeError: Cannot read property 'replace' of null Error while executing filter MozEmStrongFilter - TypeError: Cannot read property 'replace' of null Error while executing filter ConvertTagsFilter - TypeError: Cannot read property 'replace' of null Error while executing filter MetaTagAttributesFilter - TypeError: Cannot read property 'replace' of null
This is the design behavior of the batch editing mechanism and changing it will introduce a breaking change which is not desirable. In order to use HTML to edit the grid contents you can manually handle the editing process as demonstrated in this code library - http://www.telerik.com/support/code-library/performing-updates-inserts-containing-html-for-a-batch-editing-grid
It would be great if when this is fixed, in addition to saving the raw HTML, any comments or tracked changes (which are visible when viewing the HTML mode in the Editor) would also be sent as part of the newValues collection.