Enable/Disable RadTextBox with Client API

2 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 16 Feb 2011 Link to this post

    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.
  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 17 Feb 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top