<
telerik:RadFileExplorer
runat
=
"server"
ID
=
"FileExplorer1"
Width
=
"520px"
Height
=
"300px"
>
<
Configuration
ViewPaths
=
"~/PDF/ECPay"
UploadPaths
=
"~/PDF/ECPay"
DeletePaths
=
"~/PDF/ECPay"
AllowFileExtensionRename
=
"True"
></
Configuration
>
</
telerik:RadFileExplorer
>
Code Behind
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Dim iASI_Num As Integer = Request("ASI_Num")
'set properties according to configuration panel
FileExplorer1.Configuration.SearchPatterns = New String() {"*.pdf"}
FileExplorer1.VisibleControls = GetVisibleControls()
FileExplorer1.EnableOpenFile = True
FileExplorer1.DisplayUpFolderItem = False
FileExplorer1.AllowPaging = False
FileExplorer1.EnableCreateNewFolder = False
FileExplorer1.Configuration.AllowFileExtensionRename = False
If (FileExplorer1.VisibleControls And Telerik.Web.UI.FileExplorer.FileExplorerControls.Grid) = 0 Then
FileExplorer1.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.Thumbnails
End If
If (FileExplorer1.VisibleControls And Telerik.Web.UI.FileExplorer.FileExplorerControls.ListView) = 0 Then
FileExplorer1.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.[Default]
End If
FileExplorer1.Configuration.UploadPaths = New String() {"~/PDF/ECPay"}
FileExplorer1.Configuration.DeletePaths = New String() {"~/PDF/ECPay"}
End Sub
Protected Function GetVisibleControls() As Telerik.Web.UI.FileExplorer.FileExplorerControls
Dim explorerControls As Telerik.Web.UI.FileExplorer.FileExplorerControls = 0
explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.AddressBox
explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.Grid
explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.ListView
explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.Toolbar
explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.TreeView
explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.ContextMenus
Return explorerControls
End Function
End Class
Hello Sir,
I have two issues in the drag and drop functionality between two treeviews.
The drag and drop is going very smooth as long as I want drag and drop small number of nodes between the two treeviews ( for examples 10 nodes , some hunderts nodes or even few thousands nodes ).
Issue 1 :
When I try to drag and drop for more than few thousands of nodes between the two treeviews, I got the error which say (Maximum request length exceed).
Issue 2:
When I drag and drop really huge number of nodes like ( 300000 nodes for example ) , usually the error is ( not enough memroy or out of memroy)
So please advise me what can I do in both cases because these cases are valid scenarios in my application.
I will be waiting for your reply.
Regards,
A.Abbas
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnFetchcode"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"div1"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
Skin
=
"Web20"
>
</
telerik:RadAjaxLoadingPanel
>
<
div
id
=
"div1"
style
=
"width: 400px; height: 200px; border: 1px solid Blue;"
>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
Text
=
"Grab Now"
></
asp:Label
>
<
telerik:RadTextBox
runat
=
"server"
ID
=
"txtCode"
ReadOnly
=
"true"
/>
<
br
/><
br
/>
</
div
>
<
br
/>
<
telerik:RadButton
ID
=
"btnFetchcode"
runat
=
"server"
Text
=
"Get Code"
OnClick
=
"btnFetchcode_Click"
>
</
telerik:RadButton
>