RadAsyncUpload File Filter

2 posts, 0 answers
  1. Mayur
    Mayur avatar
    34 posts
    Member since:
    Mar 2012

    Posted 07 Jul 2014 Link to this post


    I want to show file filter for images , i have put the code at my design page

    Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function () { return false; };
    Telerik.Web.UI.RadAsyncUpload.Modules.IFrame.isAvailable = function () { return false; };

    This code is not working fine when first time the page is loaded and then i click browse,but when i perform any operation like editing a radgrid or some other operation and then i click browse then its working properly.

    Hereby i attached 2 files First Time and Second Time .In FirstTime Image it does not show anything and in SecondTime  it shows Filter Icon.

    Plz Suggest
  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 10 Jul 2014 Link to this post

    Hi Mayur,

    You can set file filter as you set the AllowedFileExtensions property. Just have in mind that the filtered file dialog will be working only when Silverlight module is used. Otherwise file filtering will not be shown in the File Upload dialog, but if file with forbidden extension is selected the OnClientFileValidationFailed event will be fired.

    Hristo Valyavicharski

    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.

Back to Top