Announcement

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

    Can't remove new and non-saved record in ListGrid

    Hi,

    there is an issue with ListGrids and set options canRemoveRecords:true, autoSaveEdits:false

    If you try to create a new record without saving it, you'll not be able to remove this record by clicking on the remove icon.

    SmartClient Version: v9.0p_2013-10-09/Pro
    Browser: Google Chrome Version 30.0.1599.69 m

    Example
    Code:
    isc.ListGrid.create({
        ID: "countryList",
       canRemoveRecords:true,autoSaveEdits:false, 
        width:500, 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:"countryName"},
            {name:"continent"},
            {name:"member_g8"},
            {name:"population", 
             formatCellValue:"isc.NumberUtil.toUSString(parseInt(value))"},
            {name:"independence"}
        ],
        autoFetchData: true,
        canEdit: true,
        editEvent: "click",
        listEndEditAction: "next"
    })
    
    isc.IButton.create({
        top:250,
        title:"Edit New",
        click:"countryList.startEditingNew()"
    });

    #2
    I have the same problem.

    If you set in the feature-explorer example "ListGrid"-"Editing"-"Enter new row" "canRemove :true", you can remove a new record with a click on the remove icon. This works with the feature-explorer on isomorphic web-page.

    But with SmartClient_v90p_2013-10-13_Pro it does not work.

    Comment


      #3
      We've now made a change to address this issue. Please try the next nightly build, dated Oct 22 or above (9.0p or 9.1d branch)

      Regards
      Isomorphic Software

      Comment

      Working...
      X