This is a migrated thread and some comments may be shown as answers.

Change notification for deleted row

3 Answers 83 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Sandra Walters
Top achievements
Rank 1
Sandra Walters asked on 29 Apr 2016, 12:35 AM

I've noticed that when the user performs a 'cut' operation to a row, the spreadsheet's Change event is fired.  However, there doesn't appear to be a way to determine that the range was actually cut - or am I missing something?

Also, when a row deletion happens, the change event isn't fired at all.  This is presenting a problem for me as I have a set of related data on the page that needs to reflect changes as the user modifies the spreadsheet.  Is there a way to effectively catch row deletions?

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 02 May 2016, 10:39 AM

Hello Sandra,

Indeed, the change event does not provide information about how the change has occurred. Do you need to perform specific actions when the user cuts a selection?

Regarding the row delete -- it should trigger a change event, so this has been logged for fixing.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sandra Walters
Top achievements
Rank 1
answered on 02 May 2016, 03:01 PM

Hi Alex, thanks for the response.

I just need a means to determine when an insert, delete, or update occurs.  A Cut operation on a whole row is effectively a delete, as far as the data is concerned.  

As a programmer myself, I hate it when people as me this... but... any ETA on the fix being rolled out?  :)

0
Alex Gyoshev
Telerik team
answered on 04 May 2016, 08:22 AM

Hello Sandra,

The cut operation will still trigger a change event, so you can detect the cut operation via its range event argument -- if all cells in the range are empty, the row has been deleted. There will be the same outcome if the user hits a delete key, so checking the values will handle this case, too.

As for the change event, we are currently evaluating how to allow detection of the row delete / insert. The change event may need to be triggered with all subsequent data, or we might provide additional events for these actions. We do not have a timeframe for the implementation, but it is likely to happen in future internal builds. We will respond in this thread once this is fixed.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Spreadsheet
Asked by
Sandra Walters
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Sandra Walters
Top achievements
Rank 1
Share this question
or