How can I hide particular UI data export options?

Kentico Support asked on May 31, 2013 18:50

How can I hide particular UI data export options?

Correct Answer

Kentico Support answered on May 31, 2013 18:50

The UI data export functionality allows you to export data shown in various listings throughout the whole UI to XLSX, CSV or XML files. The export functionality is accessible in a context menu after clicking the arrown icon in the Actions column header. However, you may want to hide certain options and allow just selected or single one. To achieve this, you need to edit <project folder>\CMSAdminControls\UI\UniGrid\Controls\UniGridMenu.ascx file and set Visible=“false“ to respective asp:panel control(s). For example, if you with to hide "Export to XML" option, use the following code:

<asp:Panel runat="server" ID="pnlXML" CssClass="Item" Visible="false">
 <asp:Panel runat="server" ID="pnlXMLPadding" CssClass="ItemPadding">
  <asp:Image runat="server" ID="imgXML" CssClass="Icon" EnableViewState="false" />
   <cms:LocalizedLabel runat="server" ID="lblXML" CssClass="Name" EnableViewState="false"
   ResourceString="export.exporttoxml" />
  </asp:Panel>
</asp:Panel>

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.