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

AlternatingItemStyle not working when using client data binding

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gang Xue
Top achievements
Rank 1
Gang Xue asked on 20 Nov 2008, 12:42 PM
It seems that the AlternatingItemStyle settings are only effective to items that are data bound on the server side. Is there anyway to get the alternating style to items added with client script on OnRowDataBound client event?

Thanks

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 24 Nov 2008, 01:54 PM
Hello Gang,

I am not exactly sure what do you mean by "items added with client script on OnRowDataBound client event". RadGrid does not support unbound mode (adding unbound rows client-side) and the item/alternating item styles should be applied as expected when you bind the grid to data on the client. 

You can verify that on the following online demos of the product:

http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Client/DataBinding/DefaultCS.aspx
http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Client/DeclarativeDataBinding/DefaultCS.aspx

If I am missing something from your logic, please elaborate a bit more on this subject in order to provide more accurate answer for your case.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Gang Xue
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or