Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
42 views

Hi. I have a RadFileExplorer and I would like to expand all of the nodes in its RadTreeView in the left hand panel on page load.

I have tried numerous ways in the code behind as well as JavaScript. The best I could manage was to expand the first node, but nothing more.

I appreciate any suggestions.

Thanks.

Rumen
Telerik team
 answered on 05 Oct 2023
0 answers
54 views

Hello,

I am trying to implement the Amazon S3 FileBrowserContentProvider to download file from S3 bucket using the function (ForceDownlodFile)

The file gets downloaded properly upon fileclick the RadWindow is opened and the file gets downloaded.

How to hide the RadWindow from code-behind?

 

Thanks

Michel

Michel
Top achievements
Rank 1
 updated question on 02 May 2023
1 answer
62 views

Hi Telerik team,

One of our customer is asking adding a date filter in the file explorer.  Ideally, there will be another column list the file date and when user click the date title, it can sort files by date.  Is there any way we can implement this feature?

 

 

Thanks,

Lan

Rumen
Telerik team
 answered on 29 Nov 2022
1 answer
105 views

I am using a custom provider for file explorer control that gets folders from a database. The folders number in the 40 000s. I am facing the problem of now the page taking too long to load because the file explorer is trying to get the subfolders  for the 40000 something folders in the root directory in the the ResolveRootDirectoryAsTree Method. The page now takes hours to load.


 Public Overrides Function ResolveRootDirectoryAsTree(ByVal path As String) As DirectoryItem
        Dim directory As DirectoryItem = dataServer.GetDirectoryItem(path, True)

        If directory Is Nothing Then
            Return Nothing
        End If
        directory.Permissions = GetPermissions(path)

        If directory.Directories IsNot Nothing Then
            For Each dir As DirectoryItem In directory.Directories
                dir.Permissions = GetPermissions(path)
            Next
        End If

        Return directory
    End Function


 


Public Function GetDirectoryItem(ByVal path As String, ByVal includeSubfolders As Boolean) As DirectoryItem
        Dim item As DataRow = Me.GetItemRowFromPath(path)

        Return If(item IsNot Nothing, Me.CreateDirectoryItem(item, includeSubfolders), Nothing)
    End Function

    Private Function CreateDirectoryItem(ByVal item As DataRow, ByVal includeSubfolders As Boolean) As DirectoryItem
        'correct permissions should be applied from the content provider
        Dim directory As New DirectoryItem(item("Description").ToString(), Me.GetLoaction(item), Me.GetFullPath(item), [String].Empty, PathPermissions.Read, Nothing,
         Nothing)
        directory.Attributes.Add("CategoryID", item("CategoryID"))

        If includeSubfolders Then
            Dim subDirItems As DataRow() = GetChildDirectories(item)
            Dim subDirs As New List(Of DirectoryItem)()

            For Each subDir As DataRow In subDirItems
                subDirs.Add(CreateDirectoryItem(subDir, False))
            Next

            directory.Directories = subDirs.ToArray()
        Else
            directory.Directories = (New List(Of DirectoryItem)).ToArray()
        End If

        Return directory
    End Function

 

Is there a way to stop the initial load of the subfolders of the folders in the root folder and load them on demand? Or what can i do to make it more efficient in loading the too many folders?

 

Rumen
Telerik team
 answered on 18 Aug 2022
1 answer
90 views

Hi guys,

We are using the Telerik RadFileExplorer tool in our UI and we are getting a consistent bug where every-other sub-folder that gets created generates the following error:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Web.UI.RadFileExplorer.CreateFolder(String currNodeValue, String newDirName)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

For example: I create a parent folder with no issues, I then create a child folder and error gets generated, I then create a grandchild folder successfully, I then create a great-grandchild folder and error gets generated, and so on.

There are a few weird things about this: A) the folders are still getting created even when error is thrown (which makes me think it could be a postback event where the error occurs), B) we use different testing environments, and when testing on the smaller-scale environments including localhost this issue is non-reproducible. However, using the same workflow in our larger-scale test environments, as well as in production, this error is reproducible.

Telerik version 2021.2.511.45, .NET version 4.8, Application reads and writes to a network drive.

I'm hoping to get some help with this as there isn't a lot of documentation on the internet for this specific tool, and I only found one article where this same issue was occurring, but the solution of removing some Telerik RFE code in the page load event handler wasn't applicable as we don't use that specific line of Telerik code.

Thanks so much for any help with this issue.

1 answer
155 views

I am getting error "You are trying to navigate to a non-existing folder or you do not have proper permissions to view this folder.
Please, contact the administrator." in my production environment. It is happening randomly. 

 

Thanks.

Vessy
Telerik team
 answered on 04 Oct 2021
1 answer
152 views

I able to access to the path as configured in the local system run. I encountered access to the path is denied error when i hosted it in IIS server.

 

The error as showed in the screenshot.

 

can anyone help me on this?

Vessy
Telerik team
 answered on 22 Sep 2021
1 answer
66 views

Have a Fileexplorer getting the results from an FTP connection.  What I would like to do is set the selected/highlighted item from the value that will be returned in a SQL Dataset.  

For example if FileExplorer currently has FileA, FileB, FileC, FileD listed and the database says for this record use FileB, well FileB is selected.

Also how do I add the value someone upload's so it can go into the database?


            <telerik:RadFileExplorer RenderMode="Lightweight" runat="server" ID="FileExplorer1" Width="520px" Height="200px" EnableCopy="true" ExplorerMode="FileTree">
                
            </telerik:RadFileExplorer>

 


            Dim paths As String() = New String() {"/"}
            FileExplorer1.Configuration.ViewPaths = paths

            Dim deletePaths As String() = New String() {"/", "/"}
            FileExplorer1.Configuration.DeletePaths = deletePaths

            Dim uploadPaths As String() = New String() {"/", "/"}
            FileExplorer1.Configuration.UploadPaths = uploadPaths

            'The "ROOT/CanDelAndUpload/" folder Is configured with full permissions
            FileExplorer1.Configuration.ContentProviderTypeName = GetType(FtpContentProvider).AssemblyQualifiedName

Vessy
Telerik team
 answered on 20 Sep 2021
1 answer
55 views

 

We have an ASP.Net RadFileExplorer integrated into our system and have noticed that once the number of files increases to 150 or more - suddenly we start getting "callback failed" when the user enters info in the "Filter By" (build-in control shown above the file list view in explorer) .  Initially thought this was data related, but after experimentation appears to be a length limit of some type in the transfer, thus once the return size is larger than that limit - we get the error independent of the data - otherwise all works as expected.   Strangely when I set a break on the error callback,  I do see all the data has been transferred from the server as expected.  

Is there a size limit on the return of the webresource call, or other limit ???  any tips on debugging this issue is appreciated. 

 

 

 

Van
Top achievements
Rank 1
Iron
Iron
 answered on 03 Aug 2021
3 answers
126 views

Hello Telerik crew,

I have a requirement where the file size needs to be appended to the file name when viewed in Thumbnails explorer mode.

I noticed that the file size is only available when in Default explorer mode (it has it's own column), but have no way of retrieving it when in Thumbnails mode. The online support doesn't mention creating a custom column/container for Thumbnails mode.

I have a couple of ideas but wanted to see if these are possible;

Option 1). when first visiting the page that the RadFileExplorer is on, do I set explorer mode to Default retrieve the current file list (including the file name & size), store in hidden variable then switch to Thumbnails (programmatically), match on filename then append the file-size when a match is found?

Option 2). in the page load (server size), retrieve the complete file list of current folder, store in hidden variable, then when client side load executes, perform a match on filename then append the file-size when a match is found?

Regards,

Chris

Vessy
Telerik team
 answered on 30 Mar 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?