Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

using Html.Kendo().Tooltip for events(tasks?) inside the scheduler?

$
0
0

Hi Vladimir,

 I tried your code to format the content of the tooltip and with the latest version 2015.3.1111 and VS2015 U1, whenever I include the ContentTemplate, I receive a JavaScript runtime error, stating the template is invalid - the debug window shows the first two lines of the script as the source of the error (0x800a139e - kendo.all.min.js, line 9, column 7789)

<scriptid="tipTemplate"type="text/x-kendo-template">
    #var element = target.is(".k-task") ? target : target.parent();#
    #var uid = element.attr("data-uid");#
    #var scheduler = target.closest("[data-role=scheduler]").data("kendoScheduler");#
    #var model = scheduler.occurenceByUid(uid);#
 
    #if(model) {#
        <strong>event start:</strong> #=kendo.format('{0:dd/MMM/yyyy}', model.start)#<br/>
        <strong>event end  :</strong> #=kendo.format('{0:dd/MMM/yyyy}', model.end)#<br/>
        <strong>event description:</strong> #=model.description)#<br/>
    #} else {#
        <strong>No event data is available.</strong>
    #}
</script>

 If I remove the ContentTemplateId, the tooltip works fine. Is there something wrong with it?

 Regards,

Marcello


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>