I've run into an interesting issue and hoping someone can shed some light.
I have a radNumericTextBox that has its value being validated and changed if invalid via set_textboxvalue function. The set_textboxvalue is working fine, however I found that if you click back in the textbox the value will return to what it was originally. What's causing this?
Using version 2008.1.515.20
I have a radNumericTextBox that has its value being validated and changed if invalid via set_textboxvalue function. The set_textboxvalue is working fine, however I found that if you click back in the textbox the value will return to what it was originally. What's causing this?
Using version 2008.1.515.20
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="sandbox.aspx.vb" Inherits="test_sandbox" %> |
<!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>Untitled Page</title> |
<script> |
function update() { |
$find('radTbQty').set_textBoxValue('1000'); |
} |
</script> |
</head> |
<body> |
<form id="form1" runat="server"> |
<rad:RadScriptManager ID="RadScriptManager1" runat="server"> |
</rad:RadScriptManager> |
<rad:RadNumericTextBox ID="radTbQty" CssClass="txtbox" Width="30px" MinValue="1" |
MaxValue="4000" MaxLength="4" NumberFormat-DecimalDigits="0" Value="1" runat="server"> |
</rad:RadNumericTextBox> |
<a href="#" onclick="update()">Update</a> |
</form> |
</body> |
</html> |