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
1140
Help w/persistence framework and WHDG (or WDG)
posted

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.

Parents Reply Children
No Data