Saving information about columns (order, width and sorting)

Hi,
I'm testing GridGroupingControl for my project.
End user has possibility:
- reorder columns by dragging
- change width of each
- set sorting on one or more
After reorganization user expects that it will be saved and when he start application again it looks the same.
In MyForm.Form_closing I added code:
ISGrid.WriteXmlSchema(xw);
ISGrid.WriteXmlLookAndFeel(xwApp);
and in MyForm.Load:
ISGrid.ApplyXmlSchema(xr);
ISGrid.ApplyXmlLookAndFeel(xrApp);
It's working good.
But I have problem.
When I prepare new version and add something e.g. change colors for alernate rows or add summarizing it is not working because in xml is saved old schema.
Questions
1) It is good way to save this information ? Maybe exists better.
2) How applied from xml only this information which described on begin this post ? e.g. column size and order, sorting

1 Reply

PM Piruthiviraj Malaimelraj Syncfusion Team October 30, 2017 01:09 PM UTC

Hi Krzysztof, 
 
Thanks for your interest in Syncfusion products. 
 
Query 
Response 
It is good way to save this information? Maybe exists better. 
Yes. The XML serialization is recommended way to save the grid styles and its data. 
 How applied from xml only this information which described on begin this post? e.g. column size and order, sorting 
As per current support in GridGroupingControl, specific part of XML file (i.e., Column order or Size or Width) alone could not be deserialized and loaded into grid. 
 
But Grid have support to serialize/deserialize the specific features alone to a individual XML files. Please refer to the below KB for further references, 
 
When I prepare new version and add something e.g. change colors for alternate rows or add summarizing it is not working because in xml is saved old schema. 
We are little bit unclear with this scenario and we need some more details of this scenario. So, could you please provide the simple screenshots or video. It would be more helpful for us to provide the better solution at the earliest 
 
Sample link: 
 
Regards, 
Piruthiviraj 


Loader.
Up arrow icon