Announcement

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

    How to hide grid fields initially but let user choose to see them

    I have a grid with numerous columns and I would like to have some of them hidden when the grid is first shown, but let the user choose to display them via the standard field chooser in the column heading menu. If I set them to hidden="true" at the data source level they do not appear in the grid but they also do not appear in the field chooser. I've also tried setHidden(true) after the grid is initially drawn but they still appear. I tried redraw() after setting the field to hidden as well but still they appear. ?

    #2
    I found the solution by reviewing another post. After the grid is drawn use ListGrid.hideField("FieldName").

    Comment


      #3
      That works too, but it's faster to setDetail(true) on the DataSource field.

      Comment


        #4
        why ListGrid.redraw or markforredraw does not work for these cases

        Comment

        Working...
        X