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

Pasting into gridview not getting cancelled on clicking 'No' in clipboard access confirmation.

2 Answers 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pradeep
Top achievements
Rank 1
Pradeep asked on 12 Oct 2012, 03:10 PM
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

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 12 Oct 2012, 03:48 PM
Hello Pradeep,

The Silverlight  platform does not provide any means by which you can check what the user pressed in the confirmation dialog.

Kind regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Pradeep
Top achievements
Rank 1
answered on 14 Oct 2012, 03:07 PM
Hi Pavel,

Thanks for your reply. Even if the silverlight platform does not offer any means, the default paste operation provided by telerik grid view does not happen if I press 'No'. That's where my confusion arises. What is happening in that case? Do telerik grid view has any internal control on that? Any help is much appreciated.

Many Thanks
Tags
GridView
Asked by
Pradeep
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Pradeep
Top achievements
Rank 1
Share this question
or