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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MulticolumnTreeView scroll to bottom

Thread ID:

Created:

Updated:

Platform:

Replies:

131838 Jul 30,2017 11:10 AM UTC Oct 24,2017 01:14 PM UTC Windows Forms 3
loading
Tags: MultiColumnTreeView
Vhalaky
Asked On July 30, 2017 11:10 AM UTC

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

Kannan R [Syncfusion]
Replied On 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 


abhilash
Replied On October 24, 2017 12:18 PM UTC

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


Kannan R [Syncfusion]
Replied On 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  
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;