Announcement

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

    Bug in ListGrid group header when using displayField.

    Using the http://www.smartclient.com/smartgwtee/showcase/#jpaRelationManyToOneSimple showcase, I tried to group items by country.

    It turns out that the group header seems to be the country Id and not the country name. See the attached screen shot.

    I suppose the listGrid gets confused because of the combination of "displayField" and "foreignKey" attribute used in the data source definition:

    Code:
        <fields>  
            <field name="countryName"   type="text"     hidden="true"   valueXPath="country/countryName"/>  
            <field name="country"       title="Country" canEdit="true"  displayField="countryName"  
                    foreignKey="countryManyToOneSimpleJPA.countryId"  
            />  
        </fields>
    Is this a bug? Is there a workaround?

    Thanks,
    Pierre
    Attached Files

    #2
    We'll check on this - note you can always override getGroupTitle() to provide your own title.

    Comment


      #3
      Thanks for the report - we've fixed this and the fix will appear in upcoming nightlies

      Comment


        #4
        Is your bug fix part of 3.0? I just checked this morning and the bug still appears in the show case. See attached screen shot.

        --Pierre
        Attached Files

        Comment


          #5
          See smartclient.com/builds for 3.0p builds that include all patches (including this one).

          Comment

          Working...
          X