Announcement

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

    ListGrid selectionAppearance and autoFitFieldWidths

    Hi,
    This is slightly modified showcase example https://www.smartclient.com/smartcli...checkboxSelect
    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:800, height:224, alternateRecordStyles:true,
        data: countryData,
        selectionAppearance:"rowStyle",
        fields:[
            {name:"countryCode", title:"Flag", width:30, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
            {name:"countryName", title:"Country"},
            {name:"capital", title:"Capital"},
            {name:"continent", title:"Continent"}
        ],
        selectionUpdated: "selectedCountries.setData(this.getSelection())",
        autoFitFieldWidths: true
    })
    
    isc.IButton.create({
        left:0, top:240,
        title:"Checkbox on",
        click:"countryList.setSelectionAppearance('checkbox');"
    })
    
    isc.IButton.create({
        left:130, top:240,
        title:"Checkbox off",
        click:"countryList.setSelectionAppearance('rowStyle');"
    })
    Grid without checkbox select looks like:
    Click image for larger version

Name:	checkbox_select_off.png
Views:	222
Size:	26.1 KB
ID:	264462
    Press Checkbox on button and Grid with checkbox select looks like:
    Click image for larger version

Name:	checkbox_select_on.png
Views:	121
Size:	26.9 KB
ID:	264463
    You can see that code (Flag) column is now inexplicably wide.
    We have above problem in our application and noticed that it is related to the ListGrid.autoFitFieldWidths=true feature.
    Thanks,
    MichalG


    #2
    Any comments will be appreciated.
    Thanks,
    MichalG

    Comment


      #3
      We see the issue and it's assigned to be fixed - we'll update here shortly.

      Comment


        #4
        This one's been fixed - please retest with a build dated February 17 or later.

        Comment


          #5
          Note that yesterday's change to address this issue was backed out because it resulted in a subtle behavior-change that tripped our autotest system . We're taking another look.

          Comment


            #6
            Will you update this topic when fixed?
            Thank you,
            MichalG

            Comment


              #7
              Yes, of course - we've been very busy lately, so forgive the delay - we'll get back to this one shortly and update here when a fix hits builds.

              Comment


                #8
                This is still an open issue. Not very important but burdensome on mobile devices with little horizontal space.
                Thanks,
                MichalG

                Comment


                  #9
                  Hi Michael
                  Thanks for the bump.
                  We've made a change to address this issue. Please try the next nightly build dated Nov 17 or above (12.1 or 13.0 branches)

                  Regards
                  Isomorphic Software

                  Comment


                    #10
                    Seems to me that this issue has been resolved in v13.0d_2021-11-17.
                    Thanks a lot,
                    MichalG

                    Comment

                    Working...
                    X