Launch open file dialog automatically upon load

2 posts, 0 answers
  1. Alex
    Alex avatar
    54 posts
    Member since:
    Feb 2009

    Posted 05 Dec 2014 Link to this post

    I have tried using this command (as per instructions in one of your blogs) to launch file open dialog immediately upon loading of ImageEditor with no success

    imageEditor.Commands.Open.Execute(null);

    I have put it in Loaded and ImageEditorLoaded functions, it does not work.
    How should I do it?
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 09 Dec 2014 Link to this post

    Hi Alex,

    The Open and Save commands of RadImageEditor take advantage of the OpenFileDialog and SaveFileDialog classes. The Silverlight framework imposes limitations on when those dialogs can be shown and requires them to be the result of a user-initiated action. That said, invoking the command in an event handler would not be possible. 

    I hope this is useful.

    Regards,
    Petya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
Back to Top