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

Extension validation on delete

1 Answer 55 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Przemek
Top achievements
Rank 1
Przemek asked on 02 Dec 2010, 12:41 PM
If we add a file with forbidden extension and next try to upload , the validator signals that the action is denied. However, when we delete this file, the error message keeps appearing. Supposingly, user adds now file with correct extension but he will still get the info about wrong extension (until click on upload button that fires validation). This can be a bit confusing for users. What we would like to do is to plug additional (only client-side) validation whenever users deletes a file - we could now check if the problematic file is still selected and if not - hide the error message. The problem is - we have no onclientdeleted event defined in radupload. There is onclientdeleting (during that event we see all selected files including the one being deleted), but how we can determine whether that row (that file) is actually being deleted? 

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 08 Dec 2010, 10:24 AM
Hi Przemek,

As an attachment you can find sample project that demonstrates how to achieve the desired functionality.

All the best,
Genady Sergeev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Upload (Obsolete)
Asked by
Przemek
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or