Grid Theme Not working

4 posts, 0 answers
  1. Gregory
    Gregory avatar
    47 posts
    Member since:
    Sep 2010

    Posted 28 Feb 2011 Link to this post

    Hello

    I am currently working with a Silverlight Grid and I want to change the theme from black to something else, but i noticed that i cannot do that, i tried selecting it in the properies tab, and got an error, I updated with the latest Inner build and now i cannot select the theme at all. so i tried adding this line ->"telerik.StyleManager.Theme = "Vista" in the XAML but nothing happens, no error and no changing of the theme

    I this a bug or am i doing something wrong?

    Thanks
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 03 Mar 2011 Link to this post

    Hello Gregory,

    You may set in the xaml like this:
    Copy Code
    <telerik:RadGridView telerik:StyleManager.Theme="Summer" />
    where telerik is an alias for our uri namespace (you have to set references to the themes binaries properly first). Or you may set an application theme from the code-behind in this way:
    Copy Code
    public partial class MainPage : UserControl
       {
           public MainPage()
           {
               StyleManager.ApplicationTheme = new SummerTheme();
               InitializeComponent();
           }
       }


    Best wishes,
    Ivan Ivanov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. DevCraft banner
  4. Gregory
    Gregory avatar
    47 posts
    Member since:
    Sep 2010

    Posted 18 Mar 2011 Link to this post

    Hi Telerik Admin

    I have tried this
    <telerik:RadGridView telerik:StyleManager.Theme="Summer" />

    But it didnt seem to work, ill try the code behind code, but will this change all my themes? ass i do have custom themes already set up
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 22 Mar 2011 Link to this post

    Hello Gregory,

    Can you verify that you have added a reference to the Telerik.Windows.Themes.Summer dll in your project?

    Regards,

    Vanya Pavlova
    the Telerik team

     

Back to Top