Extension validation on delete

Thread is closed for posting
2 posts, 0 answers
  1. Przemek
    Przemek avatar
    7 posts
    Member since:
    May 2009

    Posted 02 Dec 2010 Link to this post

    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? 
  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 08 Dec 2010 Link to this post

    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.
Back to Top