During an attempt to delete individual items from the RadFileExplorer, the below Message from webpage results:
The selected file could not be deleted because the application did not have enough permissions. Please, contact the administrator.
However, I am able to delete a folder from the RadFileExplorer.
Below is the code - .aspx and C# ; The RadFileExplorer is populated in the C#, after a read to an SQL Server table;
Any insight is appreciated;
The selected file could not be deleted because the application did not have enough permissions. Please, contact the administrator.
However, I am able to delete a folder from the RadFileExplorer.
Below is the code - .aspx and C# ; The RadFileExplorer is populated in the C#, after a read to an SQL Server table;
Any insight is appreciated;
<
telerik:RadFileExplorer
ID
=
"RadFileExplorer1"
Runat
=
"server"
Width
=
"100%"
Height
=
"600px"
ExplorerMode
=
"FileTree"
onclientitemselected
=
"OnClientItemSelected"
OnClientLoad
=
"OnFileExplorerLoad"
VisibleControls
=
"TreeView, Grid, Toolbar, ContextMenus"
TreePaneWidth
=
"100%"
BorderColor
=
"Transparent"
BorderStyle
=
"None"
EnableCopy
=
"True"
EnableOpenFile
=
"False"
MaxUploadFileSize
=
"2147483647"
ViewStateMode
=
"Enabled"
>
</
telerik:RadFileExplorer
>
using
(SqlConnection connection =
new
SqlConnection(newConnect))
{
// Create the Command and Parameter objects;
SqlCommand command =
new
SqlCommand(queryString, connection);
// Open the connection in a try/catch block;
// Create and execute the DataReader;
try
{
connection.Open();
SqlDataReader reader = command.ExecuteReader();
while
(reader.Read())
{
UsernameDB = (reader[1]).ToString();
listViewPaths.Add(reader.GetString(3));
listUploadDeletePaths.Add(reader.GetString(4));
WebPageTitle = (reader[5]).ToString();
}
reader.Close();
}
catch
(Exception ex)
{
}
}
}
}
Page.Title = WebPageTitle;
RadFileExplorer1.Configuration.ViewPaths = listViewPaths.ToArray();
RadFileExplorer1.Configuration.UploadPaths = listUploadDeletePaths.ToArray();
RadFileExplorer1.Configuration.DeletePaths = listUploadDeletePaths.ToArray();