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
    Admin
    Nencho avatar
    1457 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.$(".racTokenList").addClass("racDisabled");
                $telerik.$(".racInput").attr('disabled', 'disabled')
            }
        </script>


    Regards,
    Nencho
    Telerik
     

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top