Announcement

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

    date ListGridField: change handler doesn't fire after editing or deleting the date

    SmartClient Version: v10.0p_2015-05-20/Enterprise Development Only (built 2015-05-20)

    chrome on OSX

    Please modify the #editByRow sample like this:

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:550, height:224, alternateRecordStyles:true, cellHeight:22,
        // use server-side dataSource so edits are retained across page transitions
        dataSource: countryDS,
        // display a subset of fields from the datasource
        fields:[
            {name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
            {name:"countryName"},
            {name:"continent"},
            {name:"member_g8"},
            {name:"population"},
            {name:"independence", 
              change:function(form, item, value){
               isc.logEcho('independence change')
            }}    
         ],
        autoFetchData: true,
        canEdit: true,
        editEvent: "click"
    })
    you'll see that if you edit or delete a date, the change handler doesn't fire.

    #2
    We're not seeing this - what you may be expecting is that the change handler will fire with each individual keystroke. By design, this doesn't happen by default, as that would require application logic to deal with lots of partially entered or invalid dates. Instead, the change handler fires on blur.

    Comment

    Working...
    X