Home All Groups Group Topic Archive Search About
Author
27 Apr 2006 1:55 PM
delebash
How do you change the minimize,close,restore function of a webpartzone.
What I want to do is only allow minimize and put the link on the webpart
zone instead of in the arrow drop down list.

                                   Minimize
Instead of                    >Minimize
                                    Close
                                    Delete
How do you modify these in general one example I have has a Delete link the
other example does not but I cannot find where this was specified.

Thanks,
Dan

Author
4 May 2006 2:06 PM
DWS
Dan delebash,

The delete link shows up when you create a webpart so you can delete it LOL.

Show verbs in titlebar with webpartverbrendermode.
<asp:WebPartZone ID="WebPartZone1" runat="server"
WebPartVerbRenderMode="TitleBar">
        </asp:WebPartZone>

Disable close and delete I'm using two different methods one for close
setting properties in the webpartzone and one for delete setting properties
in the delete element of the webpartzone you decide whats best for you.
<asp:WebPartZone ID="WebPartZone1" runat="server"
WebPartVerbRenderMode="TitleBar"
         CloseVerb-Enabled="false" CloseVerb-Visible="false" >
        <DeleteVerb Enabled="false" Visible="false" />
</asp:WebPartZone>


Good Luck
DWS

Show quoteHide quote
"delebash" wrote:

> How do you change the minimize,close,restore function of a webpartzone.
> What I want to do is only allow minimize and put the link on the webpart
> zone instead of in the arrow drop down list.
>
>                                    Minimize
> Instead of                    >Minimize
>                                     Close
>                                     Delete
> How do you modify these in general one example I have has a Delete link the
> other example does not but I cannot find where this was specified.
>
> Thanks,
> Dan