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
2306
Strange behaviour with save and load layout
posted

Hello,

i'm using the save and load method of the grid(also tried with savexml and loadxml) to save the layouts on files. I dont understand why the save method saves also the valuelists in the file? valuelist may change because for example they are generated from other data so they are not static.

The problem is that if i save the layout without the valuelist and than load the layout, the grid loose the valuelist(and i see the data) even though the are generated at ultraGridContatti_InitializeLayout event.

Any idea how to fix this?

Is there a tool that converts from xml layout to non xml layout and viceversa?

 

Thank you.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Walter,

    I'm not sure what the problem is. The grid saves the ValueLists because they are properties on the column and they are therefore part of the layout. If you don't want this, then do not include the ValueLists flag in the PropertyCategories you specify to the save method.

    Of course, if you don't save the ValueList, then they won't be there when you load. So you will have to re-attach the correct ones you want in code after calling the Load method.

Reply Children