When I create a sharepoint 2007 webpart and attach a custom Toolpart to the webpart it works fine. However, when I go into edit mode the appearance category is always expanded, and I would like it to be collapsed. I have noticed that the Content Query Webpart
be default has collapsed all the catgories of the WebPartToolpart. I tried to look through the code in Reflector, but I wasn't able to figure out how this webpart does the trick.
I have found that the WebPartToolpart class has and Expand() method, but undfortunately not a Collapse method.
Does anyone has the answer to this one ?
Lars Kohsel, Nykredit
View Complete Post