We have a WHDG as part of a user control. I need to be able to load and save it's settings, hopefully, using the persistence framework. I'm using the simple logic from the sameples browsers for manual persistence, but have found a few issues:
1) I doesn't appear the persistence framework (pf) will save column sizes or positions when AutoGenerateColumns is true. Is that correct? Wouldn't be a problem except that the column collection isn't built for me when AutoGenerateColumns=true like it was w/ultrawebgrid.
2) I need to be able to load/save settings after the page_load event but it's not clear when in the page life-cycle I have all the settings available, eg. when do I get column width's if no autopostback when column width changes?
3) I frequently get a "value can not be null error" for parameter name "key" when trying restore via:
manager.LoadControl(control, controlData)
but I'm not sure how to debug this or what it might be referring to. Still figuring out a steps to reliably recreate but it happens a lot.
Hello cantrellr,
This issue has been resolved in our latest Service Release.
Please install it and test it with your application.
Thank you.
Thank you for your patience while we are investigating this behavior.
I have created a new Support Case for you with number – CAS-69249-KV0LR5 – and we can continue to communicate further trough this case.
You can access this case from “My IG > My Support Activity” section in our website.
Thank you for your cooperation regarding this issue.
We are still investigating this I will provide you with more information within next 24 hours.
Thank you for your sample.
I was able to reproduce the described by you exception. I will send your sample to our Development team and I will update you when more information is available about this exception.
Hey Alex. Here's a runnable sample, including a persistence file that will generate the "value can not be null error in VS". Just click the Load button to see it.
The sample project emulates what I need to do in the real app, which is save and restore different grid configurations for the same WHDG, which is used as part of a component that may have any potential datatable as it's datasource (therefore need AutoGenerateColumns=true).