Control scroll position of listbox

2 posts, 0 answers
  1. brad
    brad avatar
    4 posts
    Member since:
    Oct 2007

    Posted 01 Aug 2010 Link to this post

    Is it possible to control the scroll position of a listbox to ensure, for example, that the selected item is displayed/visible?

    Thanks,

    Brad Smith
  2. brad
    brad avatar
    4 posts
    Member since:
    Oct 2007

    Posted 01 Aug 2010 Link to this post

    Silly me.  Should have searched first.  

    function selectedIndexChanged(sender, args)
    {
        var item = args.get_item();
        item.scrollIntoView();
    }



    --Brad
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top