Scenario:-
1. Text box is placed on the gallery and collection(colData) is bind to a gallery.
2. Another collection(colUpdatedData) is created to keep track of the changes made by user. This collection is updated on the OnChange event of Textbox.
3. On save button click the colUpdatedData is patched to dataverse.
Problem:-
1. The onChange event of text box get triggered everytime gallery is loaded. Due to that colUpdateData collection does not keep track of changed content correctly.
2. That means when we implement pagination in gallery and user navigate between pages, the colUpdateData collection is getting updated with additional item because the gallery data is loaded on each navigation.
How can we make sure the onChange event of textbox only trigger when user made changes instead of every time data is loaded to gallery?
User | Count |
---|---|
247 | |
106 | |
82 | |
50 | |
43 |