
Jeremy T. Fuller
Top achievements
Rank 1
Jeremy T. Fuller
asked on 17 Jun 2008, 07:04 PM
For some reason I am unable to hide the drop down on the client. I'm using the following code:
I am able to show the drop down using .showDropDown() with no problem.
In Firefox 2 and 3, hiding it does nothing. There is no JavaScript error, it just ignores the function call.
In IE6 and IE7, I get a JavaScript error in your code. The error occurs inside the _setPosition function, on the line that looks like this:
There is definitely a combo box on the screen, and I am able to get a reference to it by using the array above. I proved that by calling get_id(), and it does return the ID of the combo box correctly.
What am I doing wrong? Thanks.
Telerik.Web.UI.RadComboBox.ComboBoxes[0].hideDropDown(); |
I am able to show the drop down using .showDropDown() with no problem.
In Firefox 2 and 3, hiding it does nothing. There is no JavaScript error, it just ignores the function call.
In IE6 and IE7, I get a JavaScript error in your code. The error occurs inside the _setPosition function, on the line that looks like this:
_169.style[_16a]=_168; |
There is definitely a combo box on the screen, and I am able to get a reference to it by using the array above. I proved that by calling get_id(), and it does return the ID of the combo box correctly.
What am I doing wrong? Thanks.
5 Answers, 1 is accepted
0
Hello Jeremy T. Fuller,
I just tried with this code:
and everything worked normally - without errors.
Could you specify how exactly the problem can be reproduced?
Regards,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I just tried with this code:
<script type="text/javascript"> |
function pageLoad() |
{ |
Telerik.Web.UI.RadComboBox.ComboBoxes[0].showDropDown(); |
Telerik.Web.UI.RadComboBox.ComboBoxes[0].hideDropDown(); |
} |
</script> |
<form id="form1" runat="server"> |
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<div> |
<telerik:RadComboBox ID="RadComboBox1" runat="server"> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
<Items> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" /> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" /> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" /> |
</Items> |
</telerik:RadComboBox> |
</div> |
</form> |
and everything worked normally - without errors.
Could you specify how exactly the problem can be reproduced?
Regards,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Jeremy T. Fuller
Top achievements
Rank 1
answered on 18 Jun 2008, 05:04 PM
Silly me. My ComboBox was actively preventing the drop down from closing. I added an override command to stop that behavior when I want it to close, and everything is working.
Sorry to waste your time. Nevertheless, your response helped me find the problem. Thanks!
Sorry to waste your time. Nevertheless, your response helped me find the problem. Thanks!
0

Phani
Top achievements
Rank 1
answered on 23 Jun 2008, 07:13 AM
Hi,
I am trying to close the combo box's dropdown by calling its hideDropDown method. But i am getting a javascript error saying, "Object doesn't support this property or method". Can you please help me here?
Thank you,
Lalitha.
I am trying to close the combo box's dropdown by calling its hideDropDown method. But i am getting a javascript error saying, "Object doesn't support this property or method". Can you please help me here?
Thank you,
Lalitha.
0
Hello Phani,
Could you paste here the JavaScript code involved in closing the Drop Down? Could you also specify which version of Telerik.Web.UI are you using?
Generally, the hideDropDown function is valid and works properly.
Greetings,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Could you paste here the JavaScript code involved in closing the Drop Down? Could you also specify which version of Telerik.Web.UI are you using?
Generally, the hideDropDown function is valid and works properly.
Greetings,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Phani
Top achievements
Rank 1
answered on 23 Jun 2008, 12:24 PM
Hi,
Sorry my problem got solved. Its infact because of the case sensitiveness of javascript. I was using "hideDropdown()" instead of "HideDropDown()".
Thank you,
Lalitha.
Sorry my problem got solved. Its infact because of the case sensitiveness of javascript. I was using "hideDropdown()" instead of "HideDropDown()".
Thank you,
Lalitha.