WidgetContainer LinkButtons

Aug 5, 2008 at 3:16 PM
I would like to hide the linkbutton for close the widget and the linkbutton for edit the widget.
To do this i made some changes in IWidgetHost

    LinkButton LinkCerrar { get; }
    LinkButton LinkModificar { get;  }

and WidgetContainer

public LinkButton LinkCerrar
    {
        get { return this.CloseWidget; }
    }

    public LinkButton LinkModificar
    {
        get { return this.EditWidget; }
    }

This way when i create a widget i can do this

public new void Init(IWidgetHost host)
    {
        host.LinkCerrar.Visible = false;
        host.LinkModificar.Visible = false;
    }
 
The problem: i have the same widget in to different pages, but in the same position, and when i hide the linkbuttons for the widget in the first page the linkbuttons of the widget in the second page are also hide. This problem doesn't happen if the widgets are in deferent positions. I would like to hide the linkbuttos of a widget without affecting the visibility of this linkbuttons in the same widget located at another page.

So for example, i would like to hide the "Edit" and "Close" linkbuttons for the widget in the first page but show them in the second, no matter the position of the widget in the page.

Any idea?
Thanks for the help
Hugo.