Announcement

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

    How do I select the unsaved row in "listGrid".

    I have added a new row with the "startEditingNew ()" function on the "ListGrid".
    After completing the edit. I can't select the same row again.
    So I can't get the entered data with the "getSelectedRecord ()" function.


    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:550, height:224, alternateRecordStyles:true,
        // 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"},
            {name:"independence"}
        ],
        autoFetchData: true,
        canEdit: true,
        editEvent: "doubleClick",
        listEndEditAction: "next",
        autoSaveEdits: false
    })
    
    isc.IButton.create({
        top:250,
        title:"Edit New",
        click:"countryList.startEditingNew()"
    });

    #2
    See Grid Editing overview, specifically the Handling Unsaved Records overview.

    Comment

    Working...
    X