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

How do I override theme for specific controls?

3 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 18 May 2011, 02:12 AM
In my code behind I have set to use an application wide theme e.g.
StyleManager.ApplicationTheme = new SummerTheme();

In my xaml I would like to style the gridviewgrouppanelcell e.g.

<Grid.Resources>
     <Style TargetType="telerik:GridViewGroupPanelCell">
         <Setter Property="Background" Value="Red"/>
     </Style>
 </Grid.Resources>


However, the background stays as the summer theme. How can I override it but keep the theme for other controls?

3 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 18 May 2011, 07:27 AM
Hi Joshua,

Thank you for the feedback.
We can confirm the issue and it is known for us. We will increase its priority and will do our best to address it in one of the next builds.
In the meantime, could you send us your application with exact requirements what you are trying to achieve so we can provide you with appropriate workaround?
 
All the best,
Yordanka
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
0
Joshua
Top achievements
Rank 1
answered on 18 May 2011, 09:29 AM
My application is too big to send over but essentially the requirements are mentioned in the first post. I need to style the background of the gridviewgrouppanelcell while keeping the Summer theme on all other telerik controls.


Is there anyway that I can reference the GridViewGroupPanelCell in codebehind so I can change the background from there?

0
Vanya Pavlova
Telerik team
answered on 18 May 2011, 09:58 AM
Hi Joshua,

 

Thank you for getting back to us! For the time being you cannot modify this element either in xaml or in code- behind in any theme different than the default one. On the other hand you may modify a built-in theme as described in the following online help article. As my colleague Yordanka proposed we will do our best to fix it in one of the next internal builds. 


Please excuse us for any inconvenience caused!



Kind regards,
Vanya Pavlova
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
Tags
GridView
Asked by
Joshua
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Joshua
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or