Announcement

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

    allowEmptyValue in listgrid editable dropdown

    Trying to set allowEmptyValue on dropdown editor. When I set the value to the empty value, it resets it to the original. Am I missing something? Also in a separate testcases, there is no update request sent when empty value is set.

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224, alternateRecordStyles:true, 
        canEdit:true, editEvent:"click", modalEditing:true,
        data: countryData,
        fields:[
            {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
            {name:"countryName", title:"Country"},
            {name:"continent", title:"Continent",editorProperties:{allowEmptyValue: true},
                valueMap:["Europe", "Asia", "North America", "Australia/Oceania", "South America", "Africa"]
            }
        ]
    })
    Last edited by acarur01; 15 Oct 2010, 06:53.

    #2
    Interesting - We'll take a look at this and see if there's a bug here.

    For now you could simply add a null entry to the valueMap (so it'd become [null, "Europe", "Asia", ...])

    Comment


      #3
      Please let me know when this is fixed.

      Comment


        #4
        Yes we'll update this thread when we have a fix in place

        Comment


          #5
          This is now resolved - the fix should show up in the next nightly build.

          Comment

          Working...
          X