Ability to ignore controls?

3 posts, 1 answers
  1. Patrick
    Patrick avatar
    59 posts
    Member since:
    Jan 2013

    Posted 13 Jul 2017 Link to this post


    Can you place a setting or property on certain controls to have them ignored during the saving/restoring using the PersistenceFramework?

    We use the PersistenceFramework mainly for saving a RadDock layout. Within this RadDock contains a control which contains a RadMenu. The headers of some of the RadMenuItems are dynamic based on what you last clicked. The layout restore is wiping away the current header (or state) and applying the one saved within the PersistenceManager stream. This appears to the user that the UI is in a bad state as it's incorrectly stating what you last clicked.

    Can this easily be stopped or ignored, at least on RadMenus?

    Thank you,


  2. Answer
    Martin Ivanov
    Martin Ivanov avatar
    2444 posts

    Posted 17 Jul 2017 Link to this post

    Hello Patrick,

    There are couple of feature of the persistence framework that I can suggest you in order to achieve your requirement. The first one is to use Serialization Options. Read more about this in the corresponding help article. The second approach is to use a custom property provider. In both cases you can avoid the serialization of the property that holds the menu. 

    Martin Ivanov
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Patrick
    Patrick avatar
    59 posts
    Member since:
    Jan 2013

    Posted 17 Jul 2017 Link to this post

    Thank you for the direction Martin!


    This worked very nicely.

            <telerik:PropertyNameMetadata Condition="Except" Expression="Child" SearchType="PropertyName" />
Back to Top