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

Change theme of BusyIndicator, not complete GridView

3 Answers 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Manuel
Top achievements
Rank 1
Manuel asked on 21 Nov 2011, 04:13 PM
Hello,
I have currently a GridView which binds the IsBusy-Property to a corresponding property in the ViewModel. It works perfectly and the BusyIndicator is shown.
The only "problem" I have is, that I'm using elsewhere the BusyIndicator as a standalone ContentControl and an assigned Expression_Dark theme, which looks prettier than the default-theme.

However, is it possible to assign this Expression_Dark theme just for the BusyIndicator inside the GridView and keep the GridView itself in the default template-style? I also tried to wrap the complete GridView with another BusyIndicator and using this one, but this leads me to two showed BusyIndicator's (one time my wrapping busyindicator and the other inside the RadGridView).

Thank you in advance!

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 22 Nov 2011, 07:39 AM
Hi Manuel,

You can apply the styles for the GridViewBusyIndicator from the ExpressionDark theme project in your xaml file which will give you the desired results. I am attaching a sample project demonstrating what I mean. If you still have any problem after you have looked into it, feel free to contact us again.

Greetings,
Nikolay Vasilev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Barry
Top achievements
Rank 1
answered on 02 Aug 2012, 06:23 PM
I also have this requirement, but in your example it doesn't work if your theme is set by: telerik:StyleManager.Theme="Office_Blue" as mine is. Setting the theme seems to override the style code for the busy indicator.

Is there another way to accomplish this?
0
Vanya Pavlova
Telerik team
answered on 03 Aug 2012, 08:10 AM
Hi Barry,

 

Indeed you are right! The style for GridViewLoadingIndicator cannot be applied in a theme different than the default one using Telerik StyleManager. Recently we have introduced a new way to style our controls utilizing the approach of using implicit styles. You may check the following online help article. 
If you use this approach you will avoid such non-styled controls in any Telerik theme. 
Can you verify how this works for you? 



Greetings,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Manuel
Top achievements
Rank 1
Answers by
Nick
Telerik team
Barry
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or