Jul 04, 2017, 3:33 AM
[CLOSED] handling SetValue differently for checkboxes
Support,
pls run this example v3 and in v4. in v3, SetValue(1) was sufficient to check it. in v4, it doesnt work.
Thanks,
/Z
pls run this example v3 and in v4. in v3, SetValue(1) was sufficient to check it. in v4, it doesnt work.
Thanks,
/Z
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
var test = function (value) {
App.myChk.setValue(true);
alert('true- should be checked now');
App.myChk.setValue(false);
alert('false - should be unchecked now');
App.myChk.setValue(1);
alert('1- should be checked now');
App.myChk.setValue(0);
alert('0 - should be unchecked now');
alert(1 == true);
alert(1 === true);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server">
<Listeners>
<DocumentReady Handler="test()" />
</Listeners>
</ext:ResourceManager>
<ext:Checkbox runat="server" ID="myChk" Disabled="true">
</ext:Checkbox>
</form>
</body>
</html>
Last edited by fabricio.murta; Sep 22, 2017 at 10:09 PM.
Reason: no feedback from the user in 7+ days