disable the radtextbox on client side

2 posts, 0 answers
  1. Arputharaj
    Arputharaj avatar
    11 posts
    Member since:
    Mar 2009

    Posted 25 Mar 2009 Link to this post

    Hi,
        Please hep me out from this. I have radtextbox that i need to disable that on client side.
    I tried this, but its not working.

    var objState = $find("<%= txtStPrTe.ClientID%>");
    objState.Disable();

    Thanks and Regards
    Arputharaj
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Mar 2009 Link to this post

    Hello Arputharaj,

    Try disable() method in order to disable the RadTextBox from client side (JavaScript is case sensitive).

    ASPX:
    <telerik:radtextbox id="txtStPrTe" runat="server"></telerik:radtextbox> 

    JavaScript:
    <script type="text/javascript">  
    function Disable()  
    {  
        var objState1 = $find("<%= txtStPrTe.ClientID %>");  
        objState1.disable();  
    }  
    </script> 

    Check out the following link for most important properties/methods of the RadTextBox client-side object.
    RadTextBox Client Object

    Thanks,
    Princy.
Back to Top