This is a migrated thread and some comments may be shown as answers.
Enable/Disable RadTextBox with Client API
1 Answer 103 Views
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 16 Feb 2011, 04:07 PM
Hello,

For some reason, the RadTextBox is not re-enabling.  I initially disable it with this code:

notLinkingTextBox.set_value("");
notLinkingTextBox.set_enabled(false);

Later on, a process checks to see whether a radcombobox has a particular value, and enables or disables the textbox with:

if (sender.get_value() == "5") {
textbox.enable();
}
else {
textbox.set_value("");
textbox.disable();
}

I've also tried:

if (sender.get_value() == "5") {
textbox.set_enabled(true);
}
else {
textbox.set_value("");
textbox.set_enabled(false);
}

But none of these are bringing them back... so what is the way to reenable the textbox?  I verified it is hitting the enable code (enable() method or set_enabled(true) method), so what do I need to do?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 17 Feb 2011, 08:04 AM
Hi Brian,

I am attaching a simple test page in which a RadTextBox is disabled and the re-enabled correctly. Please take a look at it and let me know what is different in your case and how to reproduce the problem.

Kind regards,
Pavel
the Telerik team
Tags
Input
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or