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

Grid Theme Not working

3 Answers 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
KobusVisagie
Top achievements
Rank 1
KobusVisagie asked on 28 Feb 2011, 08:31 AM
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

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 03 Mar 2011, 08:40 AM
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!
0
KobusVisagie
Top achievements
Rank 1
answered on 18 Mar 2011, 06:47 AM
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
0
Vanya Pavlova
Telerik team
answered on 22 Mar 2011, 09:16 AM
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

 

Tags
GridView
Asked by
KobusVisagie
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
KobusVisagie
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or