Unplanned
Last Updated: 26 Jul 2022 11:43 by ADMIN
Van
Created on: 09 Mar 2020 14:37
Category: FileExplorer
Type: Bug Report
2
Tree scroll position not maintained on node selection
The folder pane scrolling position is not persisted when the first child folder is selected.
 
 
Steps to reproduce:
1. Open https://demos.telerik.com/aspnet-ajax/fileexplorer/examples/overview/defaultcs.aspx
2. Add several folders to the last node
3. Scroll down to the bottom and select the first child folder of the last node
 
Result: The tree is scrolled to top.
2 comments
ADMIN
Peter Milchev
Posted on: 26 Jul 2022 11:43

Hello Sathiya,

The forum thread below contains the workaround which can be used until the issue is fixed: 

In general, the following code should be added/loaded somewhere after the script manager of the page, ideally near the closing </form> tag.

 <script>
            Telerik.Web.UI.RadFileExplorer.prototype.set_currentDirectory = function (value, addToStack)
            {
                //add to back/forward stack
                if ((null != this._actionsManager) &&
                    (value != this.get_currentDirectory()) &&
                    (false != addToStack)
                    )
                    this._updateBackForward(value); // Is true

                var currentDirectoryInputElement = this._getCurrentDirectoryElement();
                if (currentDirectoryInputElement) currentDirectoryInputElement.value = value;
                var tree = this.get_tree();
                var node = tree.findNodeByValue(value);
                if (node)
                {
                    node.select();

                    //we cannot use tree's scrollIntoView due to the tree/splitter declarations
                    //this._scrollFolderIntoView(node);
                }

                var textboxID = this.get_addressBox();
                if (textboxID)
                {
                    var textbox = $get(textboxID);
                    if (textbox)
                    {
                        textbox.value = value;
                    }
                }

                //update toolbar
                this._updateToolbar();
            }
        </script>

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Sathiya
Posted on: 30 Jun 2022 03:05

Hello Telerik Team,

Do we have any update on this issue? Can this be prioritized?

Our end customers are dealing with long list of files daily and this scrolling issue is frustrating them.

If this is gonna take time, kindly provide a workaround atleast.

Thanks,

Sathiya