Announcement

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

    ListGrid selectHeaderOnSort to false doesn't work

    Hi Isomorphic,

    I am on SmartClient 8.3 (9-17 build) but also noticed this on 9.0.

    When I set selectHeaderOnSort to false in a ListGrid to remove the selected state when a column is sorted, it still shows the ListGrid column in the selected state.

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224, alternateRecordStyles:true, showAllRecords:true,
        dataSource: countryDS,
        autoFetchData: true,
        fields:[
            {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
            {name:"countryName", title:"Country"},
            {name:"population", title:"Population", formatCellValue:"isc.NumberUtil.toUSString(value)"},
            {name:"area", title:"Area (km²)", formatCellValue:"isc.NumberUtil.toUSString(value)"}
    	],
    	selectHeaderOnSort: false,
            // initial sort on Population, high-to-low
    	initialSort: [{
    		property: "population",
    		direction: "descending"
    	}]
    })

    #2
    Thanks for the notification. This issue should be resolved in the next nightly build

    Regards
    Isomorphic Software

    Comment


      #3
      canResizeFields false

      No problem and thanks for fixing it. I also noticed another small issue with ListGrids.

      Setting canResizeFields to false doesn't do anything. Is this as expected? I double click a ListGrid column and it still resizes it to fit the contents (see attachment).
      Attached Files

      Comment


        #4
        That's controlled by the separate flag canAutoFitFields.

        Now that you mention it, this should probably default to false if canResizeFields is false. We'll change that.

        Comment

        Working...
        X