javascript - Pass 2 parameters to function in ClientTemplate of Telerik grid in Asp.net mvc3 -


i want send 2 parameters function in clienttemplate of telerik grid in asp.net mvc3.

i did this:

 columns.bound(m => m.id).title("delete").clienttemplate("<a href='#' title='delete' onclick='return deletedata(<#=id#>,<#=name#>)'><span class='delete'></span></a>").width(53); 

but not working.

in id field int field , name string type field. how can accomplish task? can please me??????

i resolved question myself. can done like:

columns.bound(m => m.id).title("delete").clienttemplate("<a href='#' title='delete' onclick=\"return deletedata(<#=id#>,'<#=name#>')\"><span class='delete'></span></a>").width(53); 

and working

:-)


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -