GridView implicit style on Load not applied

3 posts, 0 answers
  1. Paul
    Paul avatar
    42 posts
    Member since:
    Jan 2012

    Posted 16 Jul 2013 Link to this post

    We have a RadDocking control with multiple RadPanes in a RadPaneGroup.  Each RadPane contains a GridView.  We have an implicit style which works as expected.  The RadPanes are dynamically added to the RadPaneGroup on demand by the user.  Each time a RadPane is added the GridView is styled correctly.

    When we implemented the PersistenceFramework we ran into an issue where the RadPane which is selected upon start-up gets the default style applied.  If I create a new RadPane it will be styled correctly as described.  I then save my layout and terminate the application.  When I start the application and we call  LoadLayout on the GridView and Load on the PersistenceManager.  And again that RadPane which is selected will have the default style applied to the GridView while the other RadPanes have the implicit style applied.

    What would be a reason for this?

  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1167 posts

    Posted 19 Jul 2013 Link to this post

    Hello Paul,

    As far as I understand your scenario, you have difficulties in loading the Style property of the RadGridView control. Also, I understand that you are using our implicit styles. This is why we suggest you to try not to persist the Style property. By doing so, when you load the control the implicit styles will take place and the style will be applied correctly. In order to follow this approach you can take a look at this article.

    Basically you can use this code:

            <telerik:PropertyNameMetadata Condition="Except" Expression="Style" SearchType="PropertyName" />
    Please give this approach a try and let us know if you need any further assistance.

    Pavel R. Pavlov
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Paul
    Paul avatar
    42 posts
    Member since:
    Jan 2012

    Posted 26 Aug 2013 Link to this post

    The issue was resolved by setting the ApplicationTheme in the StyleManger.
Back to Top