Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Status: New
XamlSpreadSheet events on user cell value (Cell value range) changed

Hello,

 We want to keep track of changes made to the XamSpreadsheet-data to enable an external save button if necessary.

 That includes the following ways to change data:

  • Manual changes from the user
  • Changes via the Context Menu
  • Changes via shortcuts (clipboard with one or multiple cells)

 Currently there is no singular event to support this requirement. Keeping track of the changes is currently (to my knowledge) possible in two ways:

  • Convert the data and compare the raw values for any changes (which is expensive for larger Spreadsheets).
  • Use the existing events:
    • EditmodeExiting-Event
    • and CommandExecuting-Event
      • Get new value from Clipboard and parse it to match the cells (for paste event)
      • check against current values if data gets changed through the action.

 

We suggest an event that gets triggered when data or format changes in the Spreadsheet containing the changed cells including previous and current value as well as address of cell. This also should be capable to deal with ranges so only 1 event received for paste on multiple cells is used.

For use this is more a bug than a feature since save button state cannot be determined with existing implementation or have to use events which are triggered very often (with scrolling) which results in slow performance of big files due comparison detection in our code.

Parents
No Data
Comment
  • If you are only wanting to know when to enable/disable your save button, why are you trying to compare the data? It would be safe to assume that if the EditModeExiting event fired, something was edited and therefore you should turn on your HasChanges flag which would enable the save button. Also, have you tried the WorkbookDirtied event? This event is invoked when a change has been made to the workbook that might require a save.

Children