SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

Editor Part Question

Last post 07-02-2012, 9:28 AM by Cimares. 1 replies.
Sort Posts: Previous Next
  •  06-27-2012, 4:32 PM 28969

    Editor Part Question

    Hi, I'm trying to use custom controls based on my own classes in an Editor Part, so I have an extra level of class structure. It sort of works, but won't save any property changes. Any thoughts on why this might be?

    Logically the code has the webpart class, the editorpart class, and that creates instances of my controls that are in another class.

    Is this too many layers to sucessfully render, any thoughts gratefully received.
  •  07-02-2012, 9:28 AM 28976 in reply to 28969

    Re: Editor Part Question

    Are your custom classes marked as Serialisable? That's caught me out before, although I'm pretty certain it should throw an exception, guess it depends if you have any error handling hiding the error.

    Other than that, make sure you have apply changes and sync changes round the right way, Sync changes is reading the values from the webpart property store and apply changes is saving them back.

    Paul.


    www.myfatblog.co.uk
    twitter.com/@cimares
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems