<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head runat="server">
<title></title>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function pageLoad() {
$find(
'<%= RadNumericTextBox1.ClientID %>').set_visible(false);
}
</script>
</telerik:RadCodeBlock>
</
head>
<
body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div>
Test
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"
Culture="English (Canada)" Width="125px">
</telerik:RadNumericTextBox>
</div>
</form>
</
body>
</
html>
6 Answers, 1 is accepted
Try the following approach for showing/hiding the RadNumericTextBox from client-side and see whether its is working fine.
JavaScript:
<script type="text/javascript"> |
function hide() |
{ |
var input = $find('<%= RadNumericTextBox1.ClientID %>'); |
input._textBoxElement.style.cssText = "display:none;"; |
} |
function show() |
{ |
var input = $find('<%= RadNumericTextBox1.ClientID %>'); |
input._textBoxElement.style.cssText = "display:block;"; |
} |
</script> |
Shinu.
Our developers already fixed the issue. Please download the latest release to test whether the set_visible method behaves as expected.
Regards,
Daniel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Salah A. Malaeb
TeknoBuild
The set_visible method for RadDatePicker has now been implemented and will be available for the next service pack (due in mid December) or the next internal build.
Greetings,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
set_visible already works for all RadInput textboxes and RadSlider. RadSlider is actually not a RadInput-based control.
Sincerely yours,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.