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

Dropdown list scrolling problem after upgrade

4 Answers 66 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Olga
Top achievements
Rank 1
Olga asked on 16 Feb 2011, 10:42 PM
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

4 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 18 Feb 2011, 03:12 PM
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
0
Olga
Top achievements
Rank 1
answered on 18 Feb 2011, 08:18 PM
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
0
Helen
Telerik team
answered on 21 Feb 2011, 04:08 PM
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!
0
Olga
Top achievements
Rank 1
answered on 23 Feb 2011, 04:29 AM
Thanks.  That worked.  Lots of places that had to be changed though.

Olga
Tags
ComboBox
Asked by
Olga
Top achievements
Rank 1
Answers by
Helen
Telerik team
Olga
Top achievements
Rank 1
Share this question
or