Hi All,
I am working on Telerik Kendo Grid. The scenerio is :
Passing function with parameter in columns.bound client template, but getting the below error
"Uncaught ReferenceError: InvoiceStatus is not defined"
Note : With out giving parameter in the function its working fine.
Please verify the code below :
<script id="template" type="text/kendo-tmpl">
@(Html.Kendo().Grid<NH.Accounts.Models.ProviderPaymentMemberLevel>() //<a onclick='alert(\"#: encode(OrderName) #\")' href='\\#'>#= OrderName #</a> ClientTemplate("#=someFuntion(ExecutionStartDateTime)#");
.Name("grid_#=ProviderId#")
.HtmlAttributes(new { style = "backgroud-color:#27326e " }) //"<a onclick=\"showOrderDetail('#= OrderName #')\" href='\\#'>#= OrderName #</a>"
.Columns(columns =>
{
//"#if(TotalBalance > 0) {#" + "<span style='padding-right: 10px;'>$ #=TotalBalance#</span><input type='checkbox' 'checked=checked' class='master-pay-checkbox' data-providerid='#=ProviderId#'></input>#}#"
columns.Bound(o => o.InvoiceStatus).Filterable(false).Width(10).ClientTemplate("#= GetInvoiceStatusColor(InvoiceStatus) #").HtmlAttributes(new { style = "text-align: left" });
Thanks
Bhanu