Page Up Down Listbox

3 posts, 0 answers
  1. Chona
    Chona avatar
    18 posts
    Member since:
    Feb 2007

    Posted 25 May 2010 Link to this post

    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. Chona
    Chona avatar
    18 posts
    Member since:
    Feb 2007

    Posted 25 May 2010 Link to this post

    Solved it on this thread

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


    Kind Regards
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 27 May 2010 Link to this post

    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.
Back to Top