Announcement

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

    Possible bug with booleans fields in group summary headers

    SmartClient Version: v10.0p_2016-02-18/PowerEdition Deployment (built 2016-02-18)
    Isomorphic SmartClient/SmartGWT Framework (v10.0p_2016-02-18/PowerEdition Deployment (built 2016-02-18))

    Browser: Chrome

    This is an interesting one since I believe it only exhibits itself under specific conditions, but you can observe it by slightly modifying one of the Showcase examples. The problem is that under the following conditions boolean fields display a checkbox in the group header summary row:
    1. The grid is editable.
    2. The grid is summarized by group.
    3. Summaries are shown in group headers.
    4. At least one of the visible ListGridFields is a boolean type.
    5. None of the other fields are summarized.
    I would instead expect that there would be no summary value displayed in the boolean columns in the group header summary.

    Here is an example that you can observe in the Showcase (http://www.smartclient.com/#dynamicGrouping) - the problem can be observed in the member_g8 column:

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:522, height:224,
        [B]canEdit: true,[/B]
        [B]showGroupSummary: true,[/B]
        [B]showGroupSummaryInHeader: true,[/B]
        alternateRecordStyles:true,
        dataSource: countryDS,
        // display a subset of fields from the datasource
        fields:[
        [B]{name:"member_g8"},[/B]
            {name:"countryName"},
            {name:"government"},
            {name:"continent"},
            {name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false}
        ],
        groupStartOpen:"all",
        groupByField: 'continent',
        autoFetchData: true
    })
    If you further added, say, the Population field to the grid you would see that the checkboxes are not displayed in the header since now there is a field contained in the grid other than the boolean field that has a summary value.

    Regards,
    Gary O'Donnell
    Last edited by godonnell_ip; 12 May 2016, 10:24. Reason: Added link to the ShowCase example used for the test case.

    #2
    Thanks for the detailed report - this has been fixed for builds dated May 11 and later.

    Comment


      #3
      Thank you for the quick response. I have not yet tried the newer libraries, but we will do so shortly and will of course let you know if we see any further issues.

      Comment

      Working...
      X