This is a migrated thread and some comments may be shown as answers.

Pb set vertical scroll value on RadTreeView loading

5 Answers 109 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Laurent
Top achievements
Rank 1
Laurent asked on 30 Jun 2008, 09:44 AM
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.

5 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 03 Jul 2008, 04:07 PM
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
0
Laurent
Top achievements
Rank 1
answered on 07 Jul 2008, 08:56 AM
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.
0
Laurent
Top achievements
Rank 1
answered on 07 Jul 2008, 10:30 AM
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.
0
Boyko Markov
Telerik team
answered on 09 Jul 2008, 01:31 PM
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
0
Nikolay Dobrev
Telerik team
answered on 09 Jul 2008, 01:31 PM
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
Tags
Treeview
Asked by
Laurent
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Laurent
Top achievements
Rank 1
Nikolay Dobrev
Telerik team
Share this question
or