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

Reset Theme on Grid

1 Answer 141 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 29 Jun 2009, 02:22 PM
I have set an Application wide Theme but for a few of the grids I would like to use a different Theme. How can I change the Theme on the GridView. I have tried the following:

tbuilder = Telerik.WinControls.ThemeResolutionService.GetRegisteredControlStyleBuilder(

GetType(RadGridView).FullName, GetType(Telerik.WinControls.RootRadElement).FullName, "ControlDefault")

 

tbuilder.BuildStyle(myRadGridView.RootElement)

but GetRegisteredControlStyleBuilderGetRegisteredControlStyleBuilder methods retuns nothing.


Also how does one change the Theme on a DockManager control?


Telerik rocks!

 

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 02 Jul 2009, 01:22 PM
Hi Code7,

Thanks for contacting us and for your question.

Unfortunately, this approach is not functional for RadGridView control. Since RadGridView internal element hierarchy is a bit different from the hierarchy of the other our controls, setting a separate theme for the Grid work only if an ApplicationThemeName is not set.

In this case, I could suggest you do not use the ApplicationThemeName property but assign the desired theme separately to each control.

I hope this is helpful. Do not hesitate to get back to me in case you have further questions.

Kind regards,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Albert
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or