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

Page Up Down Listbox

2 Answers 71 Views
ComboBox and ListBox (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.
Chona
Top achievements
Rank 1
Chona asked on 25 May 2010, 11:29 AM
I am trying to achieve a page up/down functionality for a Point of sale.

Lets say the case where i have a listbox
Achored on all sides, and autoscroll enabled = true

with two bottons Page up / Page down

If I press page down button I want the list box to scroll down by the amount of its height.
How do I do this ?

I tried using for page down

radListBox1.AutoScrollOffset = new Point(0, (-1*radListBox1.AutoScrollOffset.Y)+radListBox1.Height);

I use a positive value for y point because it gets converted into negative and therefore I set the Y offset to a positive by multiplying it by -1.

With very little success.

Thank you in advance

2 Answers, 1 is accepted

Sort by
0
Chona
Top achievements
Rank 1
answered on 25 May 2010, 02:02 PM
Solved it on this thread

http://www.telerik.com/community/forums/reply-thread.aspx?messageId=0&threadId=312929


Kind Regards
0
Victor
Telerik team
answered on 27 May 2010, 04:24 PM
Hi Chona,

I am glad to hear that you managed to find a solution. Write again if you need further assistance with our controls.

Best wishes,
Victor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Chona
Top achievements
Rank 1
Answers by
Chona
Top achievements
Rank 1
Victor
Telerik team
Share this question
or