Hi,
when the combox is disabled from serverside (editable=false), it gives an js-error when it is clicked:
Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
In line 11811,
when the combox is disabled from serverside (editable=false), it gives an js-error when it is clicked:
Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
In line 11811,
this
.get_inputDomElement().focus();.
Are we disabling it wrong, or is this just a bug?
4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 09 Feb 2009, 12:42 PM
Hi Staron,
You cab easily disable the RadComboBox from server side by setting the Enabled property to false. I tried the below code and its working fine at my end.
ASPX:
CS:
Thanks,
Shinu.
You cab easily disable the RadComboBox from server side by setting the Enabled property to false. I tried the below code and its working fine at my end.
ASPX:
<telerik:RadComboBox ID="RadComboBox1" Runat="server"> |
<Items> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" Value="RadComboBoxItem1" /> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" Value="RadComboBoxItem2" /> |
</Items> |
</telerik:RadComboBox> |
CS:
RadComboBox1.Enabled = false; // Disable RadComboBox |
Thanks,
Shinu.
0
staron
Top achievements
Rank 1
answered on 09 Feb 2009, 01:03 PM
That is what we are doing, but the dropdown is still clickable.
0
staron
Top achievements
Rank 1
answered on 10 Feb 2009, 09:46 AM
After upgrading to the latest version the combobox no longer gives an error msg. However; the dropdown opens even though enabled=false.
0
Hello staron,
I was unable to reproduce this behavior at my side with Telerik.Web.UI v2008.3.1314 - the drop down did not open when the RadComboBox was disabled.
Could you specify which version exactly you are using or send us a page, exhibiting the behavior, in a support ticket, so that we inspect it?
Kind regards,
Simon
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I was unable to reproduce this behavior at my side with Telerik.Web.UI v2008.3.1314 - the drop down did not open when the RadComboBox was disabled.
Could you specify which version exactly you are using or send us a page, exhibiting the behavior, in a support ticket, so that we inspect it?
Kind regards,
Simon
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.