Sunday, 18 August 2013

How can I send a data field to a javascript function?

How can I send a data field to a javascript function?

I'm using kendo-ui grid.
My grid fill with ajax method.
No I have to pass primary key field value to a method as parameter.
I used a code same as this :
columns.Template(@<text></text>).ClientTemplate("#= renderNumber(data, <#=
UserId #>)#");
but my javascript methode doesnt fire.
But if I use this :
columns.Template(@<text></text>).ClientTemplate("#= renderNumber(data)#");
It will run. Actually without input parameter.
any idea ?

No comments:

Post a Comment