Home / Community & Support / Knowledge Base / RadControls for ASP.NET and ASP.NET AJAX / ComboBox / The DropDown area is dispositioned on scroll

The DropDown area is dispositioned on scroll

Article Info

Rating: 5

Article information

Article relates to

 RadComboBox v2.8.x

Created by

 Nick

Last modified

 18 February, 2008

Last modified by

 Nick

The DropDown area is dispositioned on scroll

To solve the problem you should use the following workaround:

Hook on the scroll event of the container element holding the combobox:




SOLUTION

content.onscroll = function()           
            {           
                var combo = <%= RadComboBox1.ClientID %>;       
                combo.HideDropDown();        
            }  



SOLUTION

content.onscroll = function()           
            {           
                var combo = $find("<%= RadComboBox1.ClientID %>");       
                combo.hideDropDown();        
            }  

Comments

  • Venkatesh Ramaswamy , Apr 25, 2008

    but do i need to call the function 30 times ?if i have 30 combox control in single screen

  • Telerik Admin , May 30, 2008

    If you wrap all comboboxes in a div, you can subscribe to the scroll event for that div and you need to hide all opened comboboxes. The easiest way to loop through all comboboxes on a page is to use tlrkComboBoxes array in the "classic" version and Telerik.Web.UI.RadComboBox.ComboBoxes array in the ASP.NET AJAX version.

If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!

Please Sign In to rate this article.