I am generating a grid from a rendered table and need to be able to set the template as a function returned from kendo.template:
Unfortunately, this results in displaying the following in each cell of the rendered grid:
My template definition looks like this:
I originally had this inline and it was working. But I've broken it out as a separate template because I intend to expand on it further.
Any help?
Thanks,
Gary
<th data-template="#: kendo.template($('\\#datePaymentEligible-template').html()) #">Payment Elig.</th>Unfortunately, this results in displaying the following in each cell of the rendered grid:
function anonymous(data /**/) { var o,e=kendo.htmlEncode;with(data){o='\n '+( datePaymentEligible != null ? kendo.toString(datePaymentEligible, 'd') : '' )+'\n ';}return o; }My template definition looks like this:
<script id="datePaymentEligible-template" type="text/x-kendo-template">
#= datePaymentEligible != null ? kendo.toString(datePaymentEligible, 'd') : '' #
</script>I originally had this inline and it was working. But I've broken it out as a separate template because I intend to expand on it further.
Any help?
Thanks,
Gary