GridView remove selected cell highlighting

2 posts, 0 answers
  1. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 14 Jun 2010 Link to this post

    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?

  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 18 Jun 2010 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top