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

dialogs must be user-initiated

1 Answer 211 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Ketaki
Top achievements
Rank 1
Ketaki asked on 25 Aug 2010, 12:04 PM

Hi
I am upgrading latest telerik binaries and in upgradation, I have one issue in RadUpload.

When RadUpload.ShowFileDialog(); method called it will through the error as follows

System.Security.SecurityException: Dialogs must be user-initiated.

Can anyone help me out in this issue?

Thanks in Advances

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 26 Aug 2010, 01:17 PM
Hi Ketaki,

Yes, indeed this is a restriction of Silverlight. The file dialogs can only be shown in a callstack (handler) of a user's MouseButton event. We cannot work around this limitation and hence the method should only be called in a handler of a user action.

Sincerely yours,
Miroslav
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
Upload
Asked by
Ketaki
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or