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

Scrolling issues with a Combox in a Modal popup

6 Answers 345 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 08 Oct 2009, 10:25 PM
Hey, I'm using the AJAX Control Toolkits Modal Popup Extender, and i'm having a problem with scrolling.  If i have the drop down open and scroll the page, or if i am using the mouse wheel to scroll through the drop down items ( i have upwards of 100 items in the dropdown) and the dropdown reaches the end of the list(either top or bottom) the page behind the modal will scroll automatically.

  In another post you mention hiding the dropdown section using javascript on the onscroll event to prevent it from moving with the page instead of staying where it started in the modal popup.   Something like
 
            var combo = $find("<%= radDropDown.ClientID %>");  
            combo.hideDropDown(); 
wired to the window.onscroll event.  That would work fine if i didnt have to scroll through the items in the list.  Is there a way to either reposition the dropdown items section manually or call a resize function, or even make it ignore the scroll event.  The latter solution would probably be the best, if possible.   If any of the above are possible please let me know, or if you have another solution I'd love to hear it.

Thanks

John

6 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 14 Oct 2009, 10:07 AM
Hello john,

Could you please paste the code of your page here so we to be able to test this situation? Thanks a lot

Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
john
Top achievements
Rank 1
answered on 26 Oct 2009, 12:59 PM
I did a few days ago, I'm really hoping for a solution before my trial expires.  When the company purchases the software it will be with a different email, and i'd hate to have to re submit everything.

John
0
Yana
Telerik team
answered on 26 Oct 2009, 04:18 PM
Hello John,

I've already answered to the support ticket regarding this issue.

Best regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Cayetano Landeros
Top achievements
Rank 1
answered on 25 Sep 2013, 04:25 PM
I am using the newest version of the controls and I am still getting the same issue as this user.  When the page scrolls the items container scrolls with the page and the dropdown is displayed disjointed and not in the same place as the items container. 
0
Nencho
Telerik team
answered on 30 Sep 2013, 01:35 PM
Hello Cayetano,

The drop down of the RadComboBox is a separate element than the input. This is the reason for the inconsistent scrolling, when the dropdown is expanded. As a workaround for this, we suggest to nest the RadComboBox in a div and attach a scroll event to this container (using JQuery). Then, at the scroll event handler you can close the RadComboBox dropdown using the hideDropDown() method. Please refer to this forum thread, where this is discussed in details.

Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Cayetano Landeros
Top achievements
Rank 1
answered on 30 Sep 2013, 02:00 PM
worked!!
Tags
ComboBox
Asked by
john
Top achievements
Rank 1
Answers by
Yana
Telerik team
john
Top achievements
Rank 1
Cayetano Landeros
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or