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

RadAsyncUpload File Filter

1 Answer 145 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mayur
Top achievements
Rank 1
Mayur asked on 07 Jul 2014, 06:49 AM
Hi,

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

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 10 Jul 2014, 06:37 AM
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.

Regards,
Hristo Valyavicharski
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
General Discussions
Asked by
Mayur
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or