Open All File by default

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

    Posted 08 Dec 2014 Link to this post

    By default, Open command of ImageEditor uses PNG files filer.
    How do I change it so that it uses All Files by default?
  2. Aylin
    Admin
    Aylin avatar
    75 posts

    Posted 11 Dec 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top