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
802
Using SaveAsXml, need to include groupBy rows expanded
posted

Hello,

I am currently using the SaveAsXml method to save my layout for my grid, however if I have the grid in groupBy mode and the rows are expanded this property of groupBy rows being expanded is not being saved. Can anyone help me with this issue? Is this bug? Thanks.

 Adrian

 

  • 45049
    posted

    This is expected behavior.  Using the SaveAsXml() method of the DisplayLayout doesn't save any information about the rows themselves, so it has no way to store information about what group-by rows were expanded or not.

    If you need to store this information, you may need to use some approach other than the SaveAsXml() method to store all the information you want to store, and a corresponding approach to load that information into a similar grid at a later point.