This question is locked. New answers and comments are not allowed.
Hi,
I have a silverlight application using the Telerik gridview. As part of my requirements, I need to paste some data from excel to datagrid. I know telerik provides default functionality for pasting the data from clipboard. But I have certain scenarios where I need to do some custom logic on my underlying view model collection. In that case, I cancel the default paste operation in the Pasting event by using the e.Cancel = true and at other scenarios the pasting occurs as normal.
The issue I have is during the first scenario above. When I work with the underlying collection, even I press 'No' of the default silverlight clipboard access confirmation which is shown while we click Ctrl-V, the pasting event fires and the collection gets edited. I guess this is because I am working with the view model collection.
Is there any means to check if I pressed 'No' of the confirmation so that I can handle that during my custom scenarios and block the edit of my underlying collection?
Many Thanks
I have a silverlight application using the Telerik gridview. As part of my requirements, I need to paste some data from excel to datagrid. I know telerik provides default functionality for pasting the data from clipboard. But I have certain scenarios where I need to do some custom logic on my underlying view model collection. In that case, I cancel the default paste operation in the Pasting event by using the e.Cancel = true and at other scenarios the pasting occurs as normal.
The issue I have is during the first scenario above. When I work with the underlying collection, even I press 'No' of the default silverlight clipboard access confirmation which is shown while we click Ctrl-V, the pasting event fires and the collection gets edited. I guess this is because I am working with the view model collection.
Is there any means to check if I pressed 'No' of the confirmation so that I can handle that during my custom scenarios and block the edit of my underlying collection?
Many Thanks