0
我正在使用Kendo UI MVC Asp.net tooltip控件显示格式化数据。但是,工具提示并不显示数据和格式,而是显示HTML代码。Kendo UI Tooltip问题
使用下面的代码段,以显示工具提示
TollTip( '#日历表TBODY', “#timeTemplate”, 'TD a.aCurrent', “顶部”);
function TollTip(target, template, filter, position) {
$(target).kendoTooltip({
filter: filter,
content: kendo.template($(template).html()),
position: position
});
}
在我使用下面的脚本片段的视图。
<script id="timeTemplate" type="text/x-kendo-template">
#if (target.data('title') != null) {#
<p>
#:target.data('title')#
</p>
#}#
</script>
我在代码中缺少什么?
你试过了什么?你期望会发生什么?什么,或没有发生?除此之外,'TollTip'与'ToolTip'也许? 'kendo.Template'也不会返回'kendo.Template'对象而不是HTML字符串。 – Mardoxx 2014-09-10 14:12:19
工具提示显示我的HTML代码而不是格式文本 – 2014-09-10 14:15:54