Announcement

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

    Gridfield with displayfield does not show sortArrow

    Hi,
    When I have a grid with a datasource and a field with a displayField then sorting does not show the sortArrow in the header. This is because the sortspecifier contains the displayfield name.

    To reproduce, try this code in the SmartClient_Explorer.html#dataSourceFields

    example.

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224, alternateRecordStyles:true, 
        dataSource: countryDS,
        fields:[
            {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
            {name:"population", title:"Population", formatCellValue:"isc.Format.toUSString(value)", displayField: 'countryName'},
            {name:"area", title:"Area (kmē)", formatCellValue:"isc.Format.toUSString(value)"}
        ],
        autoFetchData: true
    })

    #2
    bumped up...

    Comment


      #3
      Sorry for the lack of notification, we fixed this the day you posted it.

      Comment


        #4
        thanks that's good news, I was waiting to upgrade for this.

        Comment


          #5
          I tried the latest nightly and this has *not* been solved. I tested it in the feature explorer of the downloaded SDK with the code sample below.

          gr. Martin

          Comment


            #6
            Apologies, there was some overlap with other fixes in the same area that day - this is fixed now and will be in todays build.

            Comment

            Working...
            X