This is a migrated thread and some comments may be shown as answers.

disable() not working

2 Answers 30 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Freddy
Top achievements
Rank 1
Freddy asked on 31 May 2013, 01:36 AM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 31 May 2013, 03:33 AM
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.
0
rajesh
Top achievements
Rank 1
answered on 22 Aug 2014, 12:34 PM
<script type="text/javascript">
    function OnClientClicked(sender, args)
{        
var itembox = $find("<%= itemSearchBox.ClientID %>");        
itembox._inputElement.focus();       
 itembox._element.focus();
 }
</script>


 working fine.. thanks 



Tags
SearchBox
Asked by
Freddy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
rajesh
Top achievements
Rank 1
Share this question
or