Disable via javascript

2 posts, 1 answers
  1. Fadi
    Fadi avatar
    3 posts
    Member since:
    Jul 2013

    Posted 02 Oct 2014 Link to this post

    Is there a way to disable the text box visually and from editing using javascript? I was using the radComboBox and it had the .disable() & .enable() functions. I see AutoCompleteBox has the set_enabled(i) however the control appearance is still enabled.
  2. Answer
    Nencho avatar
    1663 posts

    Posted 07 Oct 2014 Link to this post

    Hello Fadi,

    Indeed the functions that you attempted to use should achieve the desired behavior. I have already forwarded this issue to our developer team as a bug, which is why I have updated your Telerik Points. As a temporal work-around, I would suggest you to use jQuery in the following manner :

    <script type="text/javascript">
            function disabledAutoCompleteBox() {
                $telerik.$(".racInput").attr('disabled', 'disabled')


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top