Gridview Alternate row colors

8 posts, 0 answers
  1. Pradeep Enugala
    Pradeep Enugala avatar
    55 posts
    Member since:
    Apr 2010

    Posted 14 Jun 2010 Link to this post

    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
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 17 Jun 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Pradeep Enugala
    Pradeep Enugala avatar
    55 posts
    Member since:
    Apr 2010

    Posted 21 Jun 2010 Link to this post

    Hi Martin,

    Thanks for your reply and its working

    Regards
    Pradeep
  5. Patrick Barranis
    Patrick Barranis avatar
    68 posts
    Member since:
    Jul 2009

    Posted 06 Feb 2012 Link to this post

    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!
  6. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 09 Feb 2012 Link to this post

    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 >>
  7. Patrick Barranis
    Patrick Barranis avatar
    68 posts
    Member since:
    Jul 2009

    Posted 09 Feb 2012 Link to this post

    Great to hear - thank you!
  8. Rodrigo Cesar
    Rodrigo Cesar avatar
    3 posts
    Member since:
    Oct 2014

    Posted 16 Mar Link to this post

    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!

  9. Hristo
    Admin
    Hristo avatar
    716 posts

    Posted 16 Mar Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready