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

Context Menu and SaveFileDialog's ShowDialog

1 Answer 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 05 Apr 2010, 09:54 PM
Hi,

I am trying to implement a context menu for the GridView, in order for a user to export the grid contents to an excel file.
The context menu works and I get the ItemClick event. However when I call the SaveFileDialog's ShowDialog method, I get a SecurityException stating:
 
System.Security.SecurityException: Dialogs must be user-initiated.
   at System.Windows.Controls.SaveFileDialog.ShowDialog()

The Context menu click is a user initiated action. Is there some way to get the system to recognize this from the context menu click is user initiated?

Regards,

Ivan.

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 08 Apr 2010, 02:44 PM
Hi Ivan,

Thank you for contacting us.

This is the expected behaviour. There is no way to change it, it is build in the Silverlight. The only way to make it work is out of the browser.

If you have any other questions please feel free to contact us again.

Regards,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Ivan
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or