Announcement

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

    [bug] grid.selectionUpdated and selectionType: "single"

    SmartClient Version: v8.3p_2013-01-04/PowerEdition Development Only (built 2013-01-04)

    the documentation for selectionUpdated method says "Called when selection changes."

    but, when selectionType is 'single' it gets called even when clicking on the already selected record (so the selection doesn't actually changes)

    you could test it on the #_Grids_Interaction_Single.select sample, modified like this:
    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224, alternateRecordStyles:true,
        data: countryData,
        fields:[
            {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
            {name:"countryName", title:"Country"},
            {name:"capital", title:"Capital"},
            {name:"continent", title:"Continent"}
        ],
        selectionType: "single",
        selectionUpdated: "isc.logEcho(record, 'selectionUpdated')"
    })
    
    
    isc.ListGrid.create({
        ID: "selectedCountries",
        width:250, height:100, top:250, alternateRecordStyles:true, showAllRecords:true,
        emptyMessage: "<br>nothing selected</b>",
        fields:[
            {name:"countryName", title:"Selected country"}
        ]
    })

    #2
    just noticed that I've already encountered this problem in the past
    http://forums.smartclient.com/showpo...51&postcount=1

    Comment


      #3
      Thanks for the report - we've fixed this for 8.3p and 9.0d - please retest with a nightly build of February 18 or later

      Comment


        #4
        just to confirm: fixed. Thank you very much.

        Comment

        Working...
        X