Nested Web Parts

Last post 09-04-2007 3:01 PM by samtaz. 2 replies.

Sort Posts:

  • Nested Web Parts

    09-04-2007, 6:14 AM
    • Loading...
    • samtaz
    • Joined on 09-04-2007, 3:45 AM
    • Posts 10

    Saw a post on this on the Sharepoint PortalServer Development group, but I need to do this in ASP.NET 2.0 without Sharepoint :

    I would like to create a web part that contains other web parts. When adding this global web part from a catalog, it should ideally display all sub-webparts and allow me to move and edit them individually within my webpartzone. The global webpart will only contain other web parts and no other elements. Is this possible, and if yes, which webpart methods should I override for my global webpart?

    Thanks for any feedback,
     
    Sam
     


  • Re: Nested Web Parts

    09-04-2007, 2:18 PM
    • Loading...
    • ErMasca
    • Joined on 02-20-2007, 12:59 PM
    • Barcelona - London
    • Posts 36

     Hi there.

    I am starting development of webparts portal next week. I am also very interested in that kind of funcionality since we really want to create a self-contain portal were the user could drop diferent webparts into a first one.

    exposing properties of all  webparts  at once or separately.I saw i post on "WebZone on webpart", but unfortunately nobody has replied to that either.

    have you had any progress on that yourself Sam?.

    We will really appreciatte any feedback, cheers.

     

    Dave. 


     

  • Re: Nested Web Parts

    09-04-2007, 3:01 PM
    • Loading...
    • samtaz
    • Joined on 09-04-2007, 3:45 AM
    • Posts 10

    Still no solution to this problem. I can render sub-webParts in a global webpart by calling their createChildControls methods in the global webpart createChildControls (ditto for createEditorParts and renderContents if reimplemented), but to do this I need some description of my global webpart. 

    This would be probably easiest to attain by exporting (adding webpart sequence information) webparts from a zone where I created my collection of sub-webparts, and then reimporting this sub-webpart and sequence information to a common global webpart class. However, this where I get this exception...

    Even then, this gives (would give...) me a global webpart containing the controls of other individual webparts, but these sub-webparts can't be moved around individually, because they arent webparts anymore. In my case, I can live with such a solution

    Any help on this would be much appreciated, be it only for the exportwebpart exception.

    Sam 

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter