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

GridView remove selected cell highlighting

1 Answer 146 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 2
Adam asked on 14 Jun 2010, 04:07 PM
Part of this is my lack of understanding of the new Visual Style Builder, but I am trying to take an existing theme and remove the extra highlighting on the current cell.  (We are using FullRowSelect selection mode on a readonly grid so it has been asked that we not show any interaction with the cells).

Previously I would open the theme up in the VSB, remove the extra states on the cell object and resave the theme as an XML file with a unique theme name.  Then I would include the xml file as a resource and load it up via a RadThemeManager as a resource.

How would I do the same thing with the new VSB?  

So far I've tried:

1) Opened the VSB
2) Loaded Office2010 as a package (found the package along with the source code).
3) Navigated to the GridView, expanded down to GridDataCellElement, then removed the IsSelected and IsCurrent element states (reverted to default No Style)
4) It appears to work correctly in the grid preview in the center
5) Saved the theme with a new name, but unchecked save as package to save it as an XML file (unchecked all controls except for the GridView)
6) Now I have a repository xml and a theme xml.  Not sure what to do with both of them, but including just the theme file as a resource like I used to doesn't quite work

Did I miss the documentation on how this should work?

Thanks
Adam

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 18 Jun 2010, 02:15 PM
Hello Adam,

Thank you for the question.

Please take a look at the following articles which concern the main concepts of the new Visual Style Builder: Concepts and Saving and Loading Theme Files. Shortly said, you need to load both the RadGridView and the Repository xml files in your project using RadThemeManager as demonstrated here. Please note that this is needed if you do not use the Office2010 theme component. If Office2010 component is registered, you need to load only the custom RadGridView theme, because the theme component contains the repository and you do not need to load it manually.

I am attaching a sample project which demonstrates how the themes are loaded. I hope this helps. If you need additional assistance, feel free to contact me.

Greetings,
Nikolay
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
Themes and Visual Style Builder
Asked by
Adam
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Share this question
or