Fire RibbonRadioButton command on restore

3 posts, 0 answers
  1. Robert
    Robert avatar
    13 posts
    Member since:
    Aug 2017

    Posted 17 Jun 2018 Link to this post

    Hi,

    I can persist RadRibbonRadioButton selected state fine but it does not on restore execute the bound command. I'm trying to use the persistence manager to restore the UI, and as a result, restore the view model state.

    Is this possible?

    Rob

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2480 posts

    Posted 20 Jun 2018 Link to this post

    Hello Robert,

    Without some code I can't tell why the command is not executed. But note that you can execute it manually - for example:
    radioButton.Command.Execute(null)
    Also, keep in mind that the persistence framework doesn't persists bindings. Instead it saves to concrete value of the specific property and then set it manually. This means that each binding that is explicitly set to OneWay no longer will work after the deserialization.

    I hope that helps.

    If you share some runnable code I could check what happens on my side and think of a solution.

    Regards,
    Martin Ivanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Robert
    Robert avatar
    13 posts
    Member since:
    Aug 2017

    Posted 14 Jul 2018 in reply to Martin Ivanov Link to this post

    After leaning more about the persistence framework I think my question was silly. I have found it best to use the persistence framework for pure UI stuff and leave the domain to another persistence framework. The persistence streaming allows be save both together.

    Thanks

Back to Top