I am using kendo button the following way.
@(Html.Kendo().Button().Name("deleteButton").HtmlAttributes(new { type = "button", @class = "k-primary pull-right" }).Content("Delete").Events(ev => ev.Click("Delete(1)")))
I need to call a javascript function with parameters
function Delete(value)
{
alert(value)
}
But it doesn't work when I click the button.
Everything works fine without arguments.
Does telerik support passing arguments to javascript functions from buttons?
@(Html.Kendo().Button().Name("deleteButton").HtmlAttributes(new { type = "button", @class = "k-primary pull-right" }).Content("Delete").Events(ev => ev.Click("Delete(1)")))
I need to call a javascript function with parameters
function Delete(value)
{
alert(value)
}
But it doesn't work when I click the button.
Everything works fine without arguments.
Does telerik support passing arguments to javascript functions from buttons?