Hello,
I have a radcombobox, and when I disable it, I can still enter text in the textbox. How can I also disable the textbox so no text can be enter when my combobox is desabled ?
Thanx for your help.
5 Answers, 1 is accepted
Hi Yann,
How do you disable the combobox? If I set Enabled="false" it gets completely disabled along with the input.
Nevertheless, you can disable the input on your end with the help of the following script:
<telerik:RadComboBox ID="RadComboBox1" runat="server" Filter="StartsWith"
OnClientLoad="OnClientLoadHandler">
<Items>
<telerik:RadComboBoxItem Text="Item1" />
<telerik:RadComboBoxItem Text="Item2" />
<telerik:RadComboBoxItem Text="Item3" />
</Items>
</telerik:RadComboBox>
<script>
function OnClientLoadHandler(sender) {
sender.get_inputDomElement().readOnly = "readonly";
}
</script>
Regards,
Rumen
Progress Telerik
dear Yann, Please help me on this..
https://www.telerik.com/forums/radcombobox-inside-radtooltip-datasource-not-updating
Hi Zubair,
I provided some hints on how to debug the problem at https://www.telerik.com/forums/radcombobox-inside-radtooltip-datasource-not-updating.
Regards,
Rumen
Progress Telerik
Hi Rumen,
Yes, i set Enabled="false" in the code behind, when the users select some options, but i still have the textbox, even if the combobox is desabled, as seen in my screenshot.
Thx for your advice, it's working well !
Regards.
You are welcome, Yann! Keep up the good work.
Regards,
Rumen
Progress Telerik