Sencha grid 데이터 가져오기

2024. 12. 18. 22:12Javascript/Sencha

신규 rows

const grid = btn.up('grid');
const = grid.getStore();
const newRecords = store.getNewRecords();

수정된 rows

const grid = btn.up('grid');
const store = grid.getStore();
const updatedRecords = store.getUpdatedRecords();

 

신규 + 수정 rows

const grid = btn.up('grid');
const store = grid.getStore();
const modifiedRecords = store.getModifiedRecords();

선택된 rows

const grid = btn.up('grid');
const store = grid.getStore();
const selection = grid.getSelectionModel().getSelection();