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

Open All File by default

1 Answer 10 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 08 Dec 2014, 07:50 PM
By default, Open command of ImageEditor uses PNG files filer.
How do I change it so that it uses All Files by default?

1 Answer, 1 is accepted

Sort by
0
Aylin
Telerik team
answered on 11 Dec 2014, 06:08 PM
Hi Alex,

Thank you for contacting us.

The file types that are displayed in Open File Dialog (PNG, BMP, All Files, etc.) are defined by Filter property. Then you could use FilterIndex property to set the wanted file type as default in the open dialog ("All Files" in your case).

The AddImageInEditor() method from our online documentation demonstrates how you could achieve the needed behavior: link.

You can encapsulate this code in a custom command and change the OpenCommand property of RadImageEditorUI to use your command.

I hope this helps. Do not hesitate to get back to us if you have additional questions.

Regards,
Aylin
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
Aylin
Telerik team
Share this question
or