Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
555
XamGrid: Adding Column in existing persisted Config
posted

We have problems adding a new column in a XamGrid while using a persisted configuration. We us the PersistanceManager.Save with some settings to save the configuration (in my example in a file but in reality we store the configurations in a database). Now a costumer wants a new column while not loosing his configurations. So we tried to add a column in Xaml but unfortunately the configuration will overwrite the configuration from the xaml-file. 

I have attached a sample solution. A "standard" configuration is already saved. And in the xaml I have added a new Column "Wedding" which is not shown...

How can I solve this?

XamGridAddingColumnPersistedConfig.zip
Parents
No Data
Reply
  • 1095
    Offline posted

    Hi Karl,

    I would suggest the following changes:

    1. Set XamGrid.AutoGenerateColumns to False.

    2. Remove the 'Wedding' DateColumn from XAML.

    3. Add the 'Wedding' DateColumn from code behind after loading the configuration

    I have attached a modified version of your sample so that you can check if those changes will work for you. If you have more questions or these steps do not solve your problem, please let me know.

    Regards,

    Stefana

    XamGridAddingColumnPersistedConfig (2).zip
Children