Pb set vertical scroll value on RadTreeView loading

6 posts, 0 answers
  1. Laurent
    Laurent avatar
    3 posts
    Member since:
    Mar 2008

    Posted 30 Jun 2008 Link to this post

    Hello,

    I would like to set the vertical scroll bar on a given value when I load a RadTreeView. But I face the following problem :

    After the RadTreeView loading, the Minimum and Maximum properties of RadTreeView.VScrollBar object remain to 0. So the value I want to apply is forbidden.

    What is the correct way to achieve this ?

    Thanks in advance,

    Laurent VP.
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 03 Jul 2008 Link to this post

    Hi Laurent,

    Thank you for writing.

    You can use the ScrollBy method of RadTreeView. The following code moves the vertical scroll bar down with value 5 i.e 5 nodes down:

       this.radTreeView1.ScrollBy(-5);

    You can scroll up by calling the ScrollBy method with a positive value.

    If you need more assistance please write me back.


    Kind regards,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Laurent
    Laurent avatar
    3 posts
    Member since:
    Mar 2008

    Posted 07 Jul 2008 Link to this post

    Hi Boyko,

    Thanks for your help,

    This does not solve my problem. The ScrollBy() method is called without exception. But the vertical scroll value remains to 0.

    Laurent VP.
  5. Laurent
    Laurent avatar
    3 posts
    Member since:
    Mar 2008

    Posted 07 Jul 2008 Link to this post

    Boyko,

    I have finally solved my problem.
    Setting the vertical scroll bar value or using ScrollBy() method works as well.
    I have just missed to set the expanded property of the nodes before setting the scroll value.

    Thanks again,

    Laurent VP.
  6. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 09 Jul 2008 Link to this post

    Hi Laurent,

    I'm glad to hear that everything works fine now.
    Don't hesitate to write me whenever you need instructions about using RadTreeView.

    Greetings,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Nikolay Dobrev
    Admin
    Nikolay Dobrev avatar
    201 posts

    Posted 09 Jul 2008 Link to this post

    Hi Laurent,

    I'm glad to see that everything works fine now.
    Don't hesitate to write me whenever you need instructions about using RadTreeView.

    Greetings,
    Nikolay Dobrev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready