I'm trying to create a detail view for a grid but I can't seem to figure out how to display a string as HTML.
I've followed the demo http://demos.kendoui.com/web/grid/custom-command.html
My view model contains a TaskText property, for example:
<p><span style="font-size:medium;text-decoration:underline;"><strong>Fix these bugs:</strong></span></p><ol><li><span style="font-size:small;color:#a349a4;"><strong>Bug 1</strong></span></li><li><span style="font-size:small;color:#ed1c24;"><strong>Bug 2</strong></span></li></ol>
The script I use is defined below:
Using #= TaskText # doesn't help as you can see in the attached file.
What seems to be the problem?
I've followed the demo http://demos.kendoui.com/web/grid/custom-command.html
My view model contains a TaskText property, for example:
<p><span style="font-size:medium;text-decoration:underline;"><strong>Fix these bugs:</strong></span></p><ol><li><span style="font-size:small;color:#a349a4;"><strong>Bug 1</strong></span></li><li><span style="font-size:small;color:#ed1c24;"><strong>Bug 2</strong></span></li></ol>
The script I use is defined below:
<
script
type
=
"text/x-kendo-template"
id
=
"template"
>
<
div
id
=
"details-container"
>
<
h2
>#= Title #</
h3
><
br
/>
<
h3
><
span
>Task type: </
span
>#= TaskType #</
h3
>
<
h3
><
span
>Added by: </
span
><
strong
> #= AddedByUserName # </
strong
>
<
time
>#= kendo.toString(AddedOn, 'yyyy-MM-dd hh:mm') #</
time
></
h3
>
#= TaskText # <
br
/>
<
h3
><
span
>Assigned to: </
span
><
strong
>#= AssignedToListUserNames # </
strong
></
h3
>
</
div
>
</
script
>
What seems to be the problem?