Hello,
Is there a way to quickly and easily save the viewing state such as column order, column visibility, column and cell color, etc.? Either xml or flat file that can save user viewing setting so the program can load it next time. If not, do you guys have plan for such feature enhancement in the upcoming version?
Thanks
Yes, I believe you are looking for the SaveLayout and LoadLayout methods; these methods save and load the C1WebGrid's layout to and from an XML file. Both of these methods accept a string parameter which represents the file path to the XML file containing the layout of the C1WebGrid. I hope this helps.
Best Regards,
-Raleigh
Thanks for the quick response and the guidance.
However, could you please help me with repeating column behavior in another post (http://helpcentral.componentone.com/CS/forums/p/81160/224381.aspx#224381) as I have not yet received response back. In brief, I have re-bound the webgrid to my dataset and the data does refresh or update in the webgrid but I got repeating columns. Example: col1, col2, col3 in this order but after re-binding I got col1, col2, col3, col1, col2, col3. Each time I rebind it append repeating set of columns again thus growing in webgrid's width.
Thanks in advance.
I am glad that I could be of assistance. Regarding your other post, can you please attach a full sample that reproduces this? I am not sure that I will be able to narrow the problem down with the code provided. The sample does not need to be your entire project, but rather what is necessary to reproduce the problem at hand. I will look at your sample as soon as I have a spare moment. If this is unacceptable, I recommend that you contact our support team.
Best Regards
I finally figured it out and it turned out to be my own program flow-logic error... what happened was my code executed the column bound code segment multiple times thus the repeating columns. Thanks for your assistance all along!