We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

MulticolumnTreeView scroll to bottom

Hi, how can I scroll to bottom (last node) in a MulticolumnTreeView?

3 Replies

KR Kannan R Syncfusion Team July 31, 2017 04:48 AM UTC



Hi Mate 
 
Thank you for contacting Syncfusion support.  
 
Yes, this reported requirement can be achieved by using EnsureVisible function in MultiColumnTreeView. Please make use of below code snippet for your reference. 
 
Code Snippet: [C#] 
 
 
        /// <summary> 
        /// To Scroll to bottom 
        /// </summary> 
        private void buttonAdv1_Click(object sender, EventArgs e) 
        { 
            this.multiColumnTreeView1.EnsureVisible(this.multiColumnTreeView1.Nodes[this.multiColumnTreeView1.Nodes.Count - 1]); 
        } 
 
 
        /// <summary> 
        /// To Scroll to Up 
        /// </summary> 
        private void buttonAdv2_Click(object sender, EventArgs e) 
        { 
            this.multiColumnTreeView1.EnsureVisible(this.multiColumnTreeView1.Nodes[0]); 
        } 
 
 
We have also prepared sample for your reference and it can be downloaded from below location.  
 
 
Kindly check with above solution and let us know if it helps. 
 
Regards 
Kannan 



AB abhilash October 24, 2017 12:18 PM UTC

Hi, how can I scroll to particular node in a TreeviewAdv?



KR Kannan R Syncfusion Team October 24, 2017 01:14 PM UTC

Hi Abhilash 
  
Thank you for your update.   
  
Please refer to the below code snippet to achieve this requirement.  
 
  
  
            this.treeViewAdv1.SelectedNode = this.treeViewAdv1.Nodes[0]; 
            //To show the particular node 
            this.treeViewAdv1.Nodes[0].BringIntoView(); 
 
            this.treeViewAdv1.SelectedNode = this.treeViewAdv1.Nodes[this.treeViewAdv1.Nodes.Count - 1]; 
            //To show the particular node 
            this.treeViewAdv1.Nodes[this.treeViewAdv1.Nodes.Count - 1].BringIntoView(); 
  
 
Kindly check with the above solution and let us know if it helps. 
 
Regards  
Kannan  
 


Loader.
Live Chat Icon For mobile
Up arrow icon