jquery - Kendo UI Tooltip issue -
i using kendo ui mvc asp.net tooltip control show formatted data. instead of showing data along formatting, tooltip showing html code.
using below code segment show tooltip
tolltip('#calendar table tbody', "#timetemplate", 'td a.acurrent', "top");
function tolltip(target, template, filter, position) { $(target).kendotooltip({ filter: filter, content: kendo.template($(template).html()), position: position });
}
on view i'm using following script snippet.
<script id="timetemplate" type="text/x-kendo-template"> #if (target.data('title') != null) {# <p> #:target.data('title')# </p> #}# </script>
what missing in code?
function tolltip(target, template, filter, position) { $(target).kendotooltip({ filter: filter, content: function(e) { kendo.template($(template).html())(e) } , position: position }); }
Comments
Post a Comment