Hi Matt,
In order to pass the arguments to the StoreFile() method you need to cancel the default execution of ItemCommand event and manually call the method, e.g.:
FileSystemContentProvider _contentProvider =
null
;
private FileSystemContentProvider ContentProvider
{
get
{
if
(object.Equals(
this
._contentProvider,
null
))
{
this
._contentProvider =
new
FileSystemContentProvider(
this
.Context,
RadFileExplorer1.Configuration.SearchPatterns,
RadFileExplorer1.Configuration.ViewPaths,
RadFileExplorer1.Configuration.UploadPaths,
RadFileExplorer1.Configuration.DeletePaths,
string.Empty,
string.Empty);
}
return
this
._contentProvider;
}
}
void RadFileExplorer1_ItemCommand(object sender, RadFileExplorerEventArgs e)
{
if
(e.Command ==
"UploadFile"
)
{
//.........
foreach (UploadedFile uploadedFile
in
upload.UploadedFiles)
{
if
(name.Equals(uploadedFile.GetName()))
{
string[] arguments =
new
string[] {
"argument1"
,
"argument2"
};
explorer.InitialPath =
this
.ContentProvider.StoreFile(uploadedFile, explorer.CurrentFolder, uploadedFile.GetName(), arguments);
//.......
}
}
}
}
Regards,
Dobromir
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>