OpenFileDialog Filter property in EditorBrowser

2 posts, 1 answers
  1. Erica
    Erica avatar
    2 posts
    Member since:
    Oct 2012

    Posted 17 Oct 2012 Link to this post

    When using the EditorBrowser control, is it possible to set properties on the OpenFileDialog dialog, such as the OpenFileDialog.Filter property?
  2. Answer
    Stefan avatar
    2906 posts

    Posted 17 Oct 2012 Link to this post

    Hello Erica,

    Thank you for writing.

    I assume that you are asking about RadBrowseEditor. If so, yes you can access the OpenFileDialog and introduce the desired settings:
    if (radBrowseEditor1.DialogType == Telerik.WinControls.UI.BrowseEditorDialogType.OpenFileDialog)
        OpenFileDialog dialog = (OpenFileDialog)radBrowseEditor1.Dialog;
        dialog.Filter = "(*.txt)|*.txt";

    I hope this helps.
    the Telerik team
    You’ve been asking for it and now it’s time for us to deliver. RadControls for WinForms Q3 2012 release is just around the corner. Sign up for a free webinar to see first all the latest enhancements.
Back to Top