Announcement

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

    ListGrid groupBy, hiding the groupBy field

    When using a grouped ListGrid, it is desirable to *not* show the groupBy field as a column in the ListGrid records. In other words, if I have a data source with category, name, and value fields, and I would like to group on the category field, then it would be very desirable not to have the category field shown in the list records, since that is redundant with the grouping.

    However, I have not seen how this is possible given the existing ListGrid API. If I set the groupBy field to be hidden in the DataSource, then the ListGrid will not draw.

    Is there an existing way to accomplish this?

    Thanks,
    Don P.

    #2
    How about setting showIfCondition to evaluate to false, or calling 'hideField()' on the grid?

    Comment


      #3
      Where is showIfCondition? I don't see this anywhere. I've looked at the ListGrid API and checked the JavaDoc index for SmartGWT.

      Thanks,
      Don P.

      Comment


        #4
        It is ListGridField.setShowIfCondition

        Comment


          #5
          Paul,

          We also posted this thread a while back -
          http://forums.smartclient.com/showthread.php?t=13746

          Could you please take a look at that one?

          Thanks,
          Don P.

          Comment

          Working...
          X