5 Answers, 1 is accepted
0
Hi Ken,
You can access the RadFileExplorer's underlying RadAsyncUpload using the corresponding property (AsyncUpload) and you can use the returned reference to assign the FileUploaded server-side event's handler, e.g.:
Greetings,
Dobromir
the Telerik team
You can access the RadFileExplorer's underlying RadAsyncUpload using the corresponding property (AsyncUpload) and you can use the returned reference to assign the FileUploaded server-side event's handler, e.g.:
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadFileExplorer1.AsyncUpload.FileUploaded +=
new
FileUploadedEventHandler(AsyncUpload_FileUploaded);
}
void
AsyncUpload_FileUploaded(
object
sender, FileUploadedEventArgs e)
{
//.....
}
Greetings,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ken
Top achievements
Rank 1
answered on 19 May 2012, 10:23 PM
project builds fine with these changes but the event is never fired when the file is uploaded....
0
Hi Ken,
Please accept my apologies for providing misleading information with my previous answer. Actually RadFileExplorer does not expose the entire functionality of the AsyncUpload. Could you please provide more detailed information regarding the usage for this event with RadFileExplorer so we can think of an alternate approach?
Is the RadFileExplorer's ItemCommand event not usable for your scenario?
Kind regards,
Dobromir
the Telerik team
Please accept my apologies for providing misleading information with my previous answer. Actually RadFileExplorer does not expose the entire functionality of the AsyncUpload. Could you please provide more detailed information regarding the usage for this event with RadFileExplorer so we can think of an alternate approach?
Is the RadFileExplorer's ItemCommand event not usable for your scenario?
Kind regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
IT Manager
Top achievements
Rank 1
answered on 22 May 2012, 12:59 PM
This is in another item which you can remove
I have a single file upload using upload in fileexplorer upon completion on the upload I would like to get the name of the file just uploaded and redirect the page. I cannot find an event that if fired when upload is complete... thanks
I have a single file upload using upload in fileexplorer upon completion on the upload I would like to get the name of the file just uploaded and redirect the page. I cannot find an event that if fired when upload is complete... thanks
0
Hi Ken,
Thank you for the provided additional information.
The RadFileExplorer's ItemCommand event can be used to achieve the required functionality - you can get the name of the uploaded file from the event argument's Path property, e.g.:
All the best,
Dobromir
the Telerik team
Thank you for the provided additional information.
The RadFileExplorer's ItemCommand event can be used to achieve the required functionality - you can get the name of the uploaded file from the event argument's Path property, e.g.:
protected
void
RadFileExplorer1_ItemCommand(
object
sender, Telerik.Web.UI.RadFileExplorerEventArgs e)
{
if
(e.Command ==
"UploadFile"
)
{
string
fileName = e.Path.Substring(e.Path.LastIndexOf(
'/'
) + 1);
Response.Redirect(String.Format(
"~/Default2.aspx?filePath={0}"
, fileName));
}
}
All the best,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.