disable() not working

3 posts, 0 answers
  1. Freddy
    Freddy avatar
    25 posts
    Member since:
    Feb 2013

    Posted 30 May 2013 Link to this post

    Hi Telerik,

    I am unable to disable the radsearchbox from javascript. Here is the code I used and cant find what is wrong with it.

    var itembox= $find("<%= itemSearchBox.ClientID %>");
    itembox.disable();

    Thanks,
    Freddy.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 May 2013 Link to this post

    Hi Freddy,

    Please have a look at the following JavaScript.

    JavaScript:
    <script type="text/javascript">
        function OnClientClicked(sender, args) {
            var itembox = $find("<%= itemSearchBox.ClientID %>");
            itembox._inputElement.disabled = true;
            itembox._element.disabled = true;
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. rajesh
    rajesh avatar
    1 posts
    Member since:
    Aug 2014

    Posted 22 Aug 2014 in reply to Shinu Link to this post

    <script type="text/javascript">
        function OnClientClicked(sender, args)
    {        
    var itembox = $find("<%= itemSearchBox.ClientID %>");        
    itembox._inputElement.focus();       
     itembox._element.focus();
     }
    </script>


     working fine.. thanks 



Back to Top