dialogs must be user-initiated

2 posts, 0 answers
  1. Ketaki
    Ketaki avatar
    26 posts
    Member since:
    Apr 2009

    Posted 25 Aug 2010 Link to this post

    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

  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 26 Aug 2010 Link to this post

    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,
    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
Back to Top