nhn / tui.grid

🍞🔡 The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
http://ui.toast.com/tui-grid/
MIT License
2.42k stars 394 forks source link

안녕하세요 modified data 관련하여 질문있습니다. #1800

Open jasingam65 opened 2 years ago

jasingam65 commented 2 years ago

그리드내 특정셀값을 수정했다가 원래대로 돌렸는데요 grid01.dataManager.getAllModifiedData().updatedRows에 데이터가 계속남아있습니다. 이거는 버그 인건지 원래 이런것인지알수있을까요? 일단 api문서에 써있는내용으로 봤을때는 Return the object that contains the lists of changed data compared to the original data. 이라고되어있어서 안나와야할것같은데요 혹시 제가 뭘 놓치고 있는게 있는지도 알수있으면 좋을것같습니다.

아래 3가지는 제가 혹시 데이터가 달라지는데가있을까싶어서 캡쳐보내드립니다!

감사합니다!!

1.grid.getAllModifiedData() image

2.grid.getRow(0) image

3.grid.dataManager.getOriginData() image

jajugoguma commented 1 year ago

Sorry for late replying.

The getModifiedRow API outputs all modified rows regardless of the original data. That is, even if they have the same value by modification, getModifiedRow outputs the corresponding row. The document that you said is incorrect and I will correct the documentation.

jasingam65 commented 1 year ago

버그가 아니라 해당내용이 맞다는거군요~! 이해했습니다 감사합니다!