Hide / Show OfficeWebUi:Item

Jun 24, 2012 at 1:12 PM

Hello,

Is it possible to hide a specific OfficeWebUI:Item?

For example, i have the following Area and i want to show / hide the 'Privacy' item (ItemPrivacy) through code (C#) based on Roles.IsUserInRole.....:

<OfficeWebUI:Area Text="Administration" ID="Area_Admin" ImageUrl="/Images/16x16/Administration.png">
        <Sections>
                <OfficeWebUI:Section Text="Management">
                        <Items>
                            <OfficeWebUI:Item Text="Security" ID="ItemSecurity" ImageUrl="/Images/16x16/Security.png" NavigateUrl="/Administration.aspx" />
                            <OfficeWebUI:Item Text="User Access" ID="ItemUserAccess" ImageUrl="/Images/16x16/UserAccess.png" NavigateUrl="/UserAccess.aspx" />
                            <OfficeWebUI:Item Text="Privacy" ID="ItemPrivacy" ImageUrl="/Images/16x16/Privacy.png" NavigateUrl="/Notice.aspx" />
                        </Items>
                 </OfficeWebUI:Section>
         </Sections>
</OfficeWebUI:Area>

 Thanks in advance.