1. ashok kumar
    ashok kumar avatar
    13 posts
    Member since:
    Aug 2009

    Posted 05 Oct 2009 Link to this post


    i have two issues to be discussed in this post  , am using radfile selector as given in this link
    http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/fileselectordialog/defaultcs.aspx with upload ,add new folder , and delete functionality,  the issues are

    1.how do i close the rad window when i upload a file , on that closing event i should know the file which was uploaded.

    2.how do i give validation message when i click upload with out selecting any file

    Thanks in Advance,


  2. Lini
    Lini avatar
    2144 posts

    Posted 08 Oct 2009 Link to this post

    Hi Ashok.c,

    Both these changes can be easily integrated in the popup page (Explorer.aspx in the example you pointed). I am sending you the updated page so you can see the changes:

    1. You can handle the FileExplorer's ItemCommand event and if the command is a file upload, output the name of the file in javascript code. When the page refreshes after the upload, the file name will be picked up by the custom code and the dialog will be automatically closed.

    2. The FileExplorer gives you access to the RadUpload control inside via its Upload property. You can use it in the Page_Load event to check if an upload was attempted (postback) but no files were selected. In this case again you can output some client script that will alert the user once the page is loaded.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top