Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ListGrid editing dropped on record removal

$
0
0
Hi isomorphic,

SC Version : Smart Client version 9.0
Browser Version: FireFox 10.0.11 ( All supported and Latest Browser ).

I'm using a ListGrid in a window, in which i'm editing multiple records, if i delete any record in the middle of the grid, other below records were reindexed properly but lost any changes that were made.


Code:

ListGrid.create (isc.addProperties({
                ID                                : "NodeList",
                canEdit                        : true,
                autoFetchData  : false,
                canDrop                : false,
                canAcceptDrop        : false,
                headerHeight        : "27",
                autoSaveEdits        : false,
                autoDraw                : false,
                dataSource                : "provnode",
                editPendingCSSText:"color:#FF31DB;font-weight:bold",
                width                        : "100%",
                height                        : "100%",
                canReorderRecords: true,
                alternateRecordStyles: true,
                editEvent                : "doubleClick",

If the record is not removed then all other changes remains in the List Grid.

Record removal code :
Code:

NodeList.data.removeAt(2); ( or ) NodeList.data.remove(objectToRemove);
How to remove the listgrid record without losing any unsaved changes?

Thanks,
Ramanathan

Viewing all articles
Browse latest Browse all 4756

Trending Articles