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

Gridview Alternate row colors

9 Answers 510 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Pradeep Enugala
Top achievements
Rank 1
Pradeep Enugala asked on 14 Jun 2010, 01:51 PM
Hi,

I'm creating new themes for the rad controls.Here I'm not able to apply the alternate row color to the resultant[result displayed in gridview] grid view.When a particular row is selected it is applied with a user selected color for it,when user clicks on next row,then the previous selected row is occupied with default color and the selected row is applied with the user selected color.

please reply ASAP

Thank you,
Pradeep

9 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 17 Jun 2010, 04:37 PM
Hi Pradeep Enugala,

Thank you for writing.

Before getting to your question, we need to note that Forums posts are treated with 72 hour response time, and are with lower priority than support tickets. If you need faster support services, please use the support ticketing system, which comes with lower response times, which also depends on your license (usually 24hours).

I am afraid that I am not completely sure that I understand the described issue. You can set an Alternating row color in the custom theme by using the Visual Style Builder. Just select TableElement, chose the "NoFilter" option from the context menu, and set desired AlternatingRowColor (see attached pictures). Keep in mind that in order to see your custom alternating row color, you have to enable it in RadGridView:
 
this.radGridView1.EnableAlternatingRowColor = true;

You also can set alternating row color through code:
 
((GridTableElement)this.radGridView1.GridElement).AlternatingRowColor = Color.Red;

Let me know if you still experience any difficulties.

Kind regards,
Martin Vasilev
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
Pradeep Enugala
Top achievements
Rank 1
answered on 21 Jun 2010, 05:28 AM
Hi Martin,

Thanks for your reply and its working

Regards
Pradeep
0
Patrick Barranis
Top achievements
Rank 1
answered on 07 Feb 2012, 04:38 AM
Hi.  Hopefully two-year-old posts still get a reply when someone replies.  The above worked great for me, but is it possible to enable alternating row colors on all grids through the Visual Style Builder?  Note I'm on the latest release (not one 2 years old).

It seems strange you'd have to do it through code, since styling is what the Style Builder is for.  (if the answer is no, please consider this a change request :).

Thanks!
0
Boryana
Telerik team
answered on 09 Feb 2012, 12:07 PM
Hello Patrick,

Thank you for the request. We have added it to our Public Issue Tracking System under id 9644. To track its status, please follow this link. Our team will our best to implement it in a future release.

Do not hesitate to write back with questions or requests.

All the best,
Boryana
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Patrick Barranis
Top achievements
Rank 1
answered on 09 Feb 2012, 03:14 PM
Great to hear - thank you!
0
Rodrigo Cesar
Top achievements
Rank 1
answered on 16 Mar 2016, 12:13 PM

Tree hours looking for this AlternatingRowColor option on Theme Builder and it is hidden!!!!

Why can't you, Telerik, show all options by default!!!???? Why need to select "No filter"?? Stupid tool!

0
Hristo
Telerik team
answered on 16 Mar 2016, 07:09 PM
Hello Rodrigo,

Thank you for writing.

At the moment, the initial selection in the drop-down displays all the properties which are relevant for the element. We consider, however, that one should be able to choose what should be selected by default.

I have logged a feature request on our feedback portal. You can track its progress, subscribe to status changes and add your vote/comment to it on the following link - feedback item. I have also updated your Telerik points.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
matteo
Top achievements
Rank 1
answered on 19 Jan 2018, 01:50 PM

I, where can i set the alternate row hot tracking style? in visual style builder i not find it, and when run the application the hot tracking style work only for 'normal' rows, not work for alternate rows.

Anyone can help me?

I'm using telerik for winforms version 2017.3.1017.40

 

Thank's

0
Hristo
Telerik team
answered on 22 Jan 2018, 09:32 AM
Hi Matteo,

Thank you for writing.

There is no special style handling the hot-tracking over the alternating rows. The hot tracking, however, is active and it is the same as with the other data rows. You can check the attached short video for reference.

You can try customizing the back colors at run-time using the RowFormatting and CellFormatting events.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Themes and Visual Style Builder
Asked by
Pradeep Enugala
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Pradeep Enugala
Top achievements
Rank 1
Patrick Barranis
Top achievements
Rank 1
Boryana
Telerik team
Rodrigo Cesar
Top achievements
Rank 1
Hristo
Telerik team
matteo
Top achievements
Rank 1
Share this question
or