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

How to get Panel Bar Scrollbar Value

1 Answer 104 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jay Jose
Top achievements
Rank 1
Jay Jose asked on 01 Oct 2009, 01:40 PM
Hi,

How do we get the scrollbar value of a Panel Bar? And, how do we put event handler for Scroll?

I tried using PanelBar.VerticalScroll.Value, it always returns 0;
I also tried attaching an event handler PanelBar.Scroll += new ScrollEventHandler(rPnlbRssFeed_Scroll), but it does not raise the event upon scrolling.


Regards,
Jay

1 Answer, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 07 Oct 2009, 06:13 AM
Hello Jay Jose,

Thank you for contacting us.

The sample code below will show you how to subscribe to the ValueChanged event of the scroll bar and how to get its value..

    1.   RadVScrollBar scrollBar = this.radPanelBarDemo.Controls[0] as RadVScrollBar;
         scrollBar.ValueChanged += new EventHandler(scrollBar_ValueChanged);

     2. void scrollBar_ValueChanged(object sender, EventArgs e)
        {
            RadVScrollBar scrollBar = this.radPanelBarDemo.Controls[0] as RadVScrollBar;
            int scrollValue = scrollBar.Value;
        }

Please do not hesitate to write me again if you have more questions.

Best wishes,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Jay Jose
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or