hi experts ,
i am using the file explorer control in my project , i have one dropdown with two folder names when user select the folder all the file explorer functionality will apply to that chosen folder here i find two panels one is for folder treeview other one is for files which shows the file name and size when i change the option in the folder dropdown first panel didn't show the selected folder but second panel shows the selected folder files can u tell me the reason plz, please check the screen shots also,
following is the code sinnpet which is written by be
-====================-------
<%@ Page Title="" Language="VB" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="false" CodeFile="FileExplorer.aspx.vb" Inherits="Admin_FileExplorer" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" Runat="Server">
<div style="margin-left:50px" >
<asp:DropDownList ID="ddlFiles" runat="server" AutoPostBack="true">
<asp:ListItem >Images Folder</asp:ListItem>
<asp:ListItem Selected="True">Mass Image Uploading Folder</asp:ListItem>
</asp:DropDownList>
<br /><br />
<telerik:RadFileExplorer runat="server" ID="fileExp" Width="520px" Height="520px">
<Configuration ViewPaths="~/HTMLEditorImages" UploadPaths="~/HTMLEditorImages" MaxUploadFileSize="26214400"
DeletePaths="~/HTMLEditorImages" />
</telerik:RadFileExplorer>
</div>
</asp:Content>
-===============================------
Imports Telerik.Charting
Imports Telerik.Web.UI
Partial Class Admin_FileExplorer
Inherits AdminPage
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If ddlFiles.SelectedIndex <= 0 Then
fileExp.Configuration.UploadPaths = {"~/HTMLEditorImages"}
fileExp.Configuration.ViewPaths = {"~/HTMLEditorImages"}
fileExp.Configuration.DeletePaths = {"~/HTMLEditorImages"}
Else
fileExp.Configuration.UploadPaths = {"~/Admin/FTPDirectory/MassImages"}
fileExp.Configuration.ViewPaths = {"~/Admin/FTPDirectory/MassImages"}
fileExp.Configuration.DeletePaths = {"~/Admin/FTPDirectory/MassImages"}
End If
End Sub
End Class
i am using the file explorer control in my project , i have one dropdown with two folder names when user select the folder all the file explorer functionality will apply to that chosen folder here i find two panels one is for folder treeview other one is for files which shows the file name and size when i change the option in the folder dropdown first panel didn't show the selected folder but second panel shows the selected folder files can u tell me the reason plz, please check the screen shots also,
following is the code sinnpet which is written by be
-====================-------
<%@ Page Title="" Language="VB" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="false" CodeFile="FileExplorer.aspx.vb" Inherits="Admin_FileExplorer" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" Runat="Server">
<div style="margin-left:50px" >
<asp:DropDownList ID="ddlFiles" runat="server" AutoPostBack="true">
<asp:ListItem >Images Folder</asp:ListItem>
<asp:ListItem Selected="True">Mass Image Uploading Folder</asp:ListItem>
</asp:DropDownList>
<br /><br />
<telerik:RadFileExplorer runat="server" ID="fileExp" Width="520px" Height="520px">
<Configuration ViewPaths="~/HTMLEditorImages" UploadPaths="~/HTMLEditorImages" MaxUploadFileSize="26214400"
DeletePaths="~/HTMLEditorImages" />
</telerik:RadFileExplorer>
</div>
</asp:Content>
-===============================------
Imports Telerik.Charting
Imports Telerik.Web.UI
Partial Class Admin_FileExplorer
Inherits AdminPage
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If ddlFiles.SelectedIndex <= 0 Then
fileExp.Configuration.UploadPaths = {"~/HTMLEditorImages"}
fileExp.Configuration.ViewPaths = {"~/HTMLEditorImages"}
fileExp.Configuration.DeletePaths = {"~/HTMLEditorImages"}
Else
fileExp.Configuration.UploadPaths = {"~/Admin/FTPDirectory/MassImages"}
fileExp.Configuration.ViewPaths = {"~/Admin/FTPDirectory/MassImages"}
fileExp.Configuration.DeletePaths = {"~/Admin/FTPDirectory/MassImages"}
End If
End Sub
End Class