How to set yaxis major gridline stlye for each axis item ?

Thread is closed for posting
4 posts, 0 answers
  1. Muhamed Shafi
    Muhamed Shafi avatar
    22 posts
    Member since:
    Jan 2010

    Posted 08 Nov 2011 Link to this post

    Hi,
           I am using a rad chart (type="Line") where I need to set major grid line style for each axis item in the y axis like, need to set different color for different grid lines and set visibility =false for some items etc. Is there a chance to do this ? I know there is a property to set the visibility or other styles for all the axis items in the y axis. But my need is to do the styling for individual items separately.
    Thanks & Regards
    Shafi
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Nov 2011 Link to this post

    Hello Muhamed,

    You can take a look into the following documentations.
    Styling Chart Elements
    Gridlines

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Muhamed Shafi
    Muhamed Shafi avatar
    22 posts
    Member since:
    Jan 2010

    Posted 08 Nov 2011 Link to this post

    Hi Princy,
        Thanks for the reply. But my requirement is to set styles for each y axis item separately. The given reference tells about general styles applicable to all y axis item. Please help.
    Thanks
    Shafi
  5. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 10 Nov 2011 Link to this post

    Hi Muhamed,

        There is no way that you can customize the Gridlines differently from one another. What I can suggest is that you use MarkedZones to achieve your scenario. Each MarkedZone can have different color. You may find the approach described in this forum post with sample code provided.

    Kind regards,
    Evgenia
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top