Currently my grid implementation is using the popup editor and a kendo template to render the markup. I was able to use the KendoEditor widget (rich-text editor) inside the popup by calling it inside the grid's Edit event. Making normal text changes does not pose a problem, but when I make changes using the KendoEditor features (bold, italics, bullets, etc.) the grid does not save, and the grid field in question (HeadLine) is marked as dirty. How do I get around this? Thank you.
Markup:
<
body
>
<
div
id
=
"grid"
></
div
>
<
script
id
=
"popup-editor"
type
=
"text/x-kendo-template"
>
<
form
class
=
"k-form k-form-vertical"
id
=
"headline-popup"
>
<
div
>
<
label
class
=
"k-edit-label"
for
=
"Headline"
>News Headline</
label
>
<
div
class
=
"k-edit-field"
>
<
textarea
id
=
"headline-test"
name
=
"HeadLine"
rows
=
"4"
>#: HeadLine#</
textarea
>
</
div
>
</
div
>
</
form
>
</
script
>
</
body
>
JavaScript:
$(
"#grid"
).kendoGrid({
dataSource: data,
columns: [
{ field:
"Headline"
, title:
"News Headline"
, width:
"5%"
, headerAttributes: {
"class"
:
"font-weight-bold"
} },
{ command: [
"edit"
], width:
"10%"
}
],
editable: {
mode:
"popup"
,
template: kendo.template($(
"#popup-editor"
).html()),
},
edit:
function
(e) {
$(
"#headline-test"
).kendoEditor({});
},
});