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

How to custom row template

4 Answers 112 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ye
Top achievements
Rank 1
Ye asked on 08 Jun 2011, 05:00 AM
I want to change the default row template.
For example, I want to set the row's background as Red Color, and when it is mouse over, its background is Yellow.
Any example code is helpful.
Thanks

4 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 08 Jun 2011, 07:02 AM
Hello Ye,

Please take a look at this article for a reference.
 

Kind regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ye
Top achievements
Rank 1
answered on 08 Jun 2011, 11:30 AM
Do you have any demo codes?
0
Vanya Pavlova
Telerik team
answered on 08 Jun 2011, 11:38 AM
Hello Ye,

 

If you want to change the background of a row in any of its states you have to edit its template.
Please refer to the following one article  "Override the Default RadGridView Styles".


Please give it a try and if you have any additional questions do not hesitate to contact us!



All the best,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ye
Top achievements
Rank 1
answered on 09 Jun 2011, 03:20 AM
Thanks! It works well
Tags
GridView
Asked by
Ye
Top achievements
Rank 1
Answers by
Maya
Telerik team
Ye
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or