Announcement

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

    ListGrid filtering on cell display value

    I have some ListGridFields where the data type is a nested structure, and I have a CellFormatter applied to calculate a display String for these fields. Is there a way to make the ListGrid or ListGridField filter on the formatted display value in these fields instead of the actual cell value?

    I'm using SmartGWT 3.0 built Dec 5 2011, running in Chrome.

    Thanks

    #2
    In 3.1d, you can do this via defining a SimpleType and implementing getAtomicValue, which will also cover sorting, summing, etc. In earlier versions, you'd have to place the value you want to use for filtering, sorting, etc as the actual field value in the Record, and manage the relationship to your underlying structure manually.

    Comment


      #3
      Hi and sorry to revive this thread,

      I'm messing with the same question right now but I can't find any example or workaround. We have some nested DataSources, using setCellFormatter on the Listgrids to show just some important strings and we want to filter from this formatted string

      How we can do this?

      Best regards
      Last edited by hespresati; 29 Apr 2013, 08:18.

      Comment

      Working...
      X