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.
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
0
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
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.
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.
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
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
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
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
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