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

Hiding a RadTextBox client-side?

3 Answers 480 Views
Input
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 24 Sep 2008, 07:25 PM
How do I had a RadTextBox via JavaScript?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Sep 2008, 06:20 AM
Hi Bob,

Try the following javascript code to achieve the desired scenario.

ASPX:
<telerik:RadTextBox ID="RadTextBox1" runat="server"
        </telerik:RadTextBox> 
        <input id="Button2" type="button" value="button"  onclick="OnClientClick()" /> 

JS:
 <script type="text/javascript"  language="javascript" > 
       function OnClientClick() 
       { 
         document.getElementById("RadTextBox1_text").style.display='none'
         
       } 
     </script> 


Regards
Shinu.
0
Rakesh
Top achievements
Rank 1
answered on 02 Nov 2011, 09:20 PM
How can i hide or show a radtextbox which is part of radlistbox control..

I am able to find it but not able to hide it or show it

can you help me....
0
Princy
Top achievements
Rank 2
answered on 03 Nov 2011, 05:58 AM
Hello Rakesh,

You can try the following javascript.

JS:
<script type="text/javascript">
function OnClientSelectedIndexChanged(sender, args)
 {
   var textbox= args.get_item().findControl("RadTextBox1");
   textbox.set_visible(false);
 }
</script>

Thanks,
Princy.
Tags
Input
Asked by
Bob
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rakesh
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or