7 Answers, 1 is accepted
0
Accepted
Hi Helen,
You could use the OnCommand event of the RadFileExplorer control and perform the specific checks. For your convenience I have attached a demo to this thread.
I hope this helps.
Best wishes,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You could use the OnCommand event of the RadFileExplorer control and perform the specific checks. For your convenience I have attached a demo to this thread.
I hope this helps.
Best wishes,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Helen
Top achievements
Rank 1
answered on 29 Jun 2009, 04:07 AM
Thank you very much for you help!
0
Helen
Top achievements
Rank 1
answered on 29 Jun 2009, 12:28 PM
:( It does not work. The method OnItemCommand in an example is not fired on upload file. It's work with create, delete, rename directory only. Why?
0
Helen
Top achievements
Rank 1
answered on 30 Jun 2009, 04:57 AM
I tried to use method RadFileExplorer. Upload. ValidatingFile. but method StoreFile in my ContentProvider is fired earlier then ValidatingFile :(
0
Hello Helen,
By design the OnItemCommand event is fired in the following commands :
In the project attached to my previous response i used the OnItemCommand event in order to perform validation. I also implemented simple logic(check the length of the path of the uploaded file) in order to cancel the uploading, and it works as expected. I also tested it with a custom provider but the OnItemCommand is fired and worked as expected.
At this point I cannot tell what is causing the problem in your case. That is why it will be best if you open a new support ticket and send me a full sample project which reproduces the problem that you experience. Once I have a better view over your setup, I will do my best to provide a solution right away.
All the best,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
By design the OnItemCommand event is fired in the following commands :
- UploadFile - fired before each uploaded file is saved
- MoveDirectory - fired before a directory is moved/renamed
- CreateDirectory - fired before the file explorer creates a new folder
- DeleteDirectory - fired before the file explorer deletes a folder
- DeleteFile - fired before a file is deleted
- MoveFile - fired before a file is moved/rename
In the project attached to my previous response i used the OnItemCommand event in order to perform validation. I also implemented simple logic(check the length of the path of the uploaded file) in order to cancel the uploading, and it works as expected. I also tested it with a custom provider but the OnItemCommand is fired and worked as expected.
At this point I cannot tell what is causing the problem in your case. That is why it will be best if you open a new support ticket and send me a full sample project which reproduces the problem that you experience. Once I have a better view over your setup, I will do my best to provide a solution right away.
All the best,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Helen
Top achievements
Rank 1
answered on 01 Jul 2009, 05:59 AM
My problem has been solved, after updating of the library version from 1.311 to 1.527. Thank !
0
Atlas
Top achievements
Rank 1
answered on 03 Mar 2010, 10:30 PM
I posted this elsewhere, but just to let others know, the event: RadFileExplorer1_ItemCommand fires once for each file you upload, so if you upload three files, it fires three times. Each time it fires, it is going to iterate through all the files that were uploaded. that would be 9 checks for:
file.FileName.Length
> 10