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

Another problem with themes

5 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 16 Dec 2008, 11:50 PM
...i'm sorry, but i have another problem with GridView and themes:

I created a theme file based on the Vista Telerik Theme using Visual Style Builder. I only modified some colors in the element tree of the GridTableHeaderRowElement and saved the new theme as xml-File. Adding the file to the project as ressource and selecting the new theme for the grid works fine and the modifications are displayed correct.

Problem: now the appearance of the grid scroll bars is also different from the Vista Telerik theme, although i didn't make any changes in the RadScrollBarElement. The color gradient goes from gray to white instead of gray to black and the scroll bar elements aren't "rounded" any more.

Tried to create the theme file again, but the same issue.


Best regards,
Martin

5 Answers, 1 is accepted

Sort by
0
Accepted
Mike
Telerik team
answered on 17 Dec 2008, 08:50 AM
Hi Martin,

This happens because there is a separate "style-sheet" for RadScrollBarElement within grid. There is a very simple solution to this though. Unfortunately VSB cannot edit this complicated theme.  That is why I prepared you a demo of how you can solve it.

I have "extracted" the scrollbar theme from grid's "VistaOrange" to a separate file - RadScrollBarElement.CustomOrange.xml. This way I have easily made modifications to grid's theme without loosing the scrollbar theme. My new theme is called "CustomOrange", note - for both the grid and the scrollbar. In my application then I have loaded both xml files. Further you can take the scrollbar theme, modify the theme name to be the same as your grid theme. You can then also customize the scrollbar theme with the VSB.
 
Sincerely yours,
Mike
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Martin
Top achievements
Rank 1
answered on 17 Dec 2008, 07:58 PM
Hi Mike,

thank you so much - works perfect. Was also my thought, to solve it with a separate theme for the ScrollBarElement within grid, but i had no idea how to implement it.
Think there is room for improvement on the Controls for WinForms, but the support ist already perfect!

Best regards,
Martin
0
Mike
Telerik team
answered on 18 Dec 2008, 04:59 PM
Hi Martin,

You are right indeed - we are still far from perfect. We are currently working on improving the Visual Style Builder app and the whole theming approach and I hope you will have no troubles with it in the future.

Regards,
Mike
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Khurram
Top achievements
Rank 1
answered on 21 Jan 2009, 12:22 PM
Hi,
I've the same problem and you already have answered that. The only problem left for me is how to extract theme settings from Desert theme i only want to modify some of the color settings while keeping the rest of the settings intact. But how could i Extract the scrollbar visual styles from Built-in theme.

Thanks,
Khurram.
0
Mike
Telerik team
answered on 26 Jan 2009, 07:46 AM
Hi Khurram,

The best approach to extract any theme from any RadControl is to:
- drop it on VS designer
- select the corresponding theme from the designer smart-tag
- Open VSB app from the smart tag link;

The control appears with the select theme in Visual Style Builder.

For your convenience I and sending you all the xml files that correspond to the build-in Desert theme. You can find the scrollbar theme under ScrollBar.xml.
Let me know if I can help you further.

Kind regards,
Mike
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Martin
Top achievements
Rank 1
Answers by
Mike
Telerik team
Martin
Top achievements
Rank 1
Khurram
Top achievements
Rank 1
Share this question
or