Announcement

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

    Fix Column in ListGrid

    Hi,

    I need to be able to fix a column in the beginning of the list and disallow unfreezing it and removing it from my list.

    Any ideas on how to do it?

    Thank you,

    #2
    Override ListGrid.getHeaderContextMenuItems(Integer fieldNum) and return the desired set of MenuItems.

    Sanjiv

    Comment


      #3
      Hi Sanjiv,

      I did that but what I am trying to do is removing the column from the submenu columns.

      However, when I use item.getSubmenu().getItems(), I am getting the length as 0. So, I am not being able to change in the submenu.

      Any other suggestions?

      If you want I can put a sample code.

      Thanks.

      Comment


        #4
        We have added listGridField.canFreeze which when set to false will disable the freeze/unfreeze option from appearing in the header context menu. Its currently in SmartClient and should appear in SmartGWT soon.

        Comment


          #5
          ListGridField.setCanFreeze(boolean canFreeze) and
          ListGridField.setCanHide(boolean canHide)

          added to SVN.

          Sanjiv

          Comment

          Working...
          X