This is a migrated thread and some comments may be shown as answers.

client side event OnRowDataBound & NeedDataSource

2 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 27 Feb 2015, 11:22 AM
A simple question, is the client event OnRowDataBound meant to fire when using server side binding with NeedDataSource?

For me it does not fire when using server side binding, only client side binding but I need the OnRowDataBound to work on server side binding when partially moving to client side coding and I cant think of a reason it shouldn't fire.

Cheers,
Christian

2 Answers, 1 is accepted

Sort by
0
Christian
Top achievements
Rank 1
answered on 27 Feb 2015, 11:25 AM
Just to add, the client event OnRowSelected fires when using server side binding, but OnRowDataBound does not as previously stated.
0
Angel Petrov
Telerik team
answered on 04 Mar 2015, 11:23 AM
Hello Christian,

Indeed the OnRowDataBound event fires only when client-side binding is used. If you want to apply some changes to the rows using JavaScript and the grid uses server-side binding you can subscribe to the OnRowCreated event. Another option for you would be to subscribe to the OnItemDataBound server-side event and move the logic on the server(if possible).

Regards,
Angel Petrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Christian
Top achievements
Rank 1
Angel Petrov
Telerik team
Share this question
or