Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    setShowHeaderContextMenu(false) doesn't work on CubeGrid

    I use the nightly built smartgwtPower+analytics module, version:3.0p-2012-08-01
    Based on the basic cube grid example of the showcase, I want to hide the context menu which is shown by right click on the header: par exemple "Revenue"), but the cubeGrid.setShowHeaderContextMenu(false) doesn't work. The context menu is always displayed.
    Second problem is that for the cubegrid, the context menu item's title is always in English. However for the listgrid, they are well translated in other defined language.

    #2
    If you find any missing translations, please see this thread for how you can add them.

    canPickFields is what controls the context menu you want to disable.

    Comment


      #3
      Code:
      cubeGrid.setShowHeaderContextMenu(false);
      cubeGrid.setCanPickFields(false);
      cubeGrid.setCanAutoFitFields(false);
      cubeGrid.setCanMinimizeColumns(false);
      setCanPickFields(false) can hide the menu item of "values";
      But the menu items "AutoFit Column", "Minimize Column" are still displayed after setCanAutoFitFields(false) and setCanMinimizeColumns(false).
      By the way, when I set hilites, a new menu item "Highlight" will be shown; I do want to hide it also, but cannot find any method to use.

      Comment


        #4
        We're not sure why you'd want to suppress all that good stuff, but showFacetValueContextMenus:false turns it all off.

        Comment

        Working...
        X