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

2 issues

1 Answer 83 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
ashok kumar
Top achievements
Rank 1
ashok kumar asked on 05 Oct 2009, 09:51 AM
Admin,

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,

Regards,

Ashok.c

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 08 Oct 2009, 10:11 AM
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,
Lini
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.
Tags
FileExplorer
Asked by
ashok kumar
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or