开发者

Telerik MVC Grid ClientEvents are never fired

开发者 https://www.devze.com 2023-02-06 04:37 出处:网络
I am using the following code to fire the client events and the events are not being fired: Telerik MVC Grid

I am using the following code to fire the client events and the events are not being fired:

Telerik MVC Grid

@Ht开发者_如何学编程ml.Telerik().Grid(Model.Customers)
               .ClientEvents(events => events.OnRowDataBound("onDataBound"))
               .... further code

Event

 function onDataBound(sender,eventArgs) { alert(eventArgs);}


Maybe you are using server binding, client events are fired with ajax binding only. You may refer to the grid's documentation here.


the script should look like below:

function onDataBound(e) {
    alert(e)
}

That should fix the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消