Roma
Roma

Reputation: 11

Telerik Grid eventType ClientEvents

How can i attach handler for Grid ClientEvent in jquery? For example:

$('#Grid').data('tGrid')
.bind('OnDataBound', function () 
{ 
 // do somethihg with $(this)
})

But not:

.ClientEvents(events => events.OnDataBount(myFunc))

What's eventType of OnDataBound event? Thanks. Best Regards.

Upvotes: 1

Views: 561

Answers (1)

Alex Gyoshev
Alex Gyoshev

Reputation: 11977

The "on" prefix is used only when the grid is created (i.e. server-side configuration or client-side initialization). To attach a handler dynamically, you should have a more jQuery-like approach:

$('#Grid').bind('dataBound', function () { 
    // do somethihg with $(this)
})

Upvotes: 1

Related Questions