How to override horizontal grid line colour when using the Metro theme

6 posts, 0 answers
  1. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 17 Nov 2014 Link to this post

    I am using the RadControls for Silverlight Q2 2011 and the Metro theme.

    When using this theme, the horizontal grid line is white and I am not able to override that by setting the HorizontalGridLineBrush.

    If I use the OfficeBlue theme then I can override the brush colour.

    Why does the Metro them prevent me overriding this property?
    How can I force the grid to use the colour I specify in HorizontalGridLineBrush?
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 18 Nov 2014 Link to this post

    Hello Paul,



    By default grid lines are not visible in this theme. 
    Have you tried to set GridLinesVisibility property of the grid to Horizontal


    Regards,
    Vanya Pavlova
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 18 Nov 2014 in reply to Vanya Pavlova Link to this post

    Hi Vanya

    Yes, I have set GridLinesVisibility to Both. If I set a background colour on the grid, I can see both vertical and horizontal lines but the horizontal lines always seem to be the PaletteInstance.MainColor which in my case is White.

    If I specify my own VerticalGridlinesBrush and HorizontalGridlinesBrush, I do see the colour specified for the vertical lines but it has no effect on the horizontal ines.

    If I use the OfficeBlue theme the colour I specify in the brushes mentioned above does appear.

    Is there some other property being set on the horizontal line that would prevent my HorizontalGridlinesBrush from having any effect?
  5. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 19 Nov 2014 Link to this post

    Is there no other advice you can give?
  6. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 20 Nov 2014 Link to this post

    Hi Paul,


    I could definitely confirm that we had this problem in Metro theme in Silverlight 4 environment. 
    As it turns out, upgrading to Q3 2011 is the best option we may offer in this particular case. 
    Hope this helps. 


    Regards,
    Vanya Pavlova
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 20 Nov 2014 in reply to Vanya Pavlova Link to this post

    Hi Vanya

    Upgrading to Q3 2001 has indeed solved the problem.

    Many thanks for the response.
Back to Top
DevCraft banner