0 Replies Latest reply on Jul 1, 2009 9:10 AM by Daniel Dausch

    How to suppress sort/group by menu on rich:column embedded i

    Daniel Dausch Newbie

      I am attempting to add a CommandButton to the column header of an Extended Data Table. It works fine and does what I need it to do. However, the built-in Context Menu for sorting and grouping interferes with viewing the button. If I expand the column I can get at the Button and do what I need it do but this is not a good solution since I am tight on real estate. Quite simply, I want to suppress the Context menu entirely and not have it show up. How do I do this? I have attempted to set properties such as sortable to 'false' but this did not do the trick. I have added some code snippets. The end game is to display a command button in the column header and have a context menu appear next to it so that the user can make an appropriate selection to 'export' the contents of the exDataTbl via JasperReports. Any suggestions are welcomed. Thanks.

      <rich:extendedDataTable id="table_mgrview_accesslevelsbymgr"
      value="#{AcrViewController.employeesAclsByMgr}" var="empacls" rows="0" height="280px" width="890px" selectionMode="single">

      <rich:column width="22px" style="padding:0" enableContextMenu="false">
      <f:facet name="header">
      <h:commandButton value="Exp" id="comButton2"/>


      <rich:contextMenu event="onclick" attachTo="comButton2"
      submitMode="server" id="menu">
      <rich:menuItem value="Generate EXCEL" action="#{AcrViewController.runEmployeesAclsByMgrRpt}"
      <a4j:actionparam value="EXCEL" assignTo="#{AcrViewController.exportOption}"/>
      <rich:menuItem value="Generate HTML" action="#{AcrViewController.runEmployeesAclsByMgrRpt}"
      <a4j:actionparam value="HTML" assignTo="#{AcrViewController.exportOption}"/>