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

Launch open file dialog automatically upon load

1 Answer 59 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 05 Dec 2014, 09:22 PM
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?

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 09 Dec 2014, 05:43 PM
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.

 
Tags
ImageEditor
Asked by
Alex
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or