Dropdown list scrolling problem after upgrade

5 posts, 0 answers
  1. Olga
    Olga avatar
    20 posts
    Member since:
    Dec 2010

    Posted 16 Feb 2011 Link to this post

    Hi,

    I have just upgraded our application from the old Classic controls to ASP.NET Ajax and the behavior of all of our dropdowns changed as follows.  Whatever item is selected, when you click on the arrow to open the dropdown, the list automatically scrolls so that the selected item is at the very top.  The old version did not do that.  It's mildly annoying and our users may not be willing to put up with that.  Is there a setting I can change so that this doesn't happen?

    Thanks,
    Olga
  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 18 Feb 2011 Link to this post

    Hi Olga,

    Please add the following javascript to your page(after the RadComboBox declaration):

    <script type="text/javascript">
           Telerik.Web.UI.RadComboBoxItem.prototype.scrollOnTop = function () { };
    </script>


    Regards,
    Helen
    the Telerik team
  3. Olga
    Olga avatar
    20 posts
    Member since:
    Dec 2010

    Posted 18 Feb 2011 Link to this post

    Hi Helen,

    I can see what this does - it just stops the list from scrolling.  But the problem is that if a selected item is way down on the list, it's not visible when the dropdown opens.  Before the upgrade it worked both ways - if a selected item was on the first screen, it didn't scoll, but if it was further down, it did.  Please help.

    Thanks,
    Olga
  4. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 21 Feb 2011 Link to this post

    Hello Olga,

    Please find attached a project how to achieve this. Hope it helps.


    Regards,
    Helen
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  5. Olga
    Olga avatar
    20 posts
    Member since:
    Dec 2010

    Posted 22 Feb 2011 Link to this post

    Thanks.  That worked.  Lots of places that had to be changed though.

    Olga
Back to Top