Sep 19, 2011, 7:25 PM
[CLOSED] Checkbox value update issue.
I have a checkbox that I need to change the value after selected value on combo.
But something is wrong. Because I'm not able to change this, whatever I do, the value still the same.
Steps to reproduce:
1. Change the combobox value to "two";
2. Change the checkbox value to "checked";
3. Now change the combobox value.
Doesn't matter which value I select on combo, the checked value on checkbox remains.
Support Code:
Code design:
tks :)
[]'s
But something is wrong. Because I'm not able to change this, whatever I do, the value still the same.
Steps to reproduce:
1. Change the combobox value to "two";
2. Change the checkbox value to "checked";
3. Now change the combobox value.
Doesn't matter which value I select on combo, the checked value on checkbox remains.
Support Code:
Code design:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
var ChangeValue = function(value)
{
myChk.checked = false;
myChk.setDisabled(true);
if(value == "2")
myChk.setDisabled(false);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server">
</ext:ResourceManager>
<ext:Checkbox runat="server" ID="myChk" Disabled="true">
</ext:Checkbox>
<ext:ComboBox runat="server" ID="myCbo">
<Listeners>
<Select Handler="ChangeValue(myCbo.getSelectedItem().value);" />
</Listeners>
</ext:ComboBox>
</form>
</body>
</html>
Code behind:protected void Page_Load(object sender, EventArgs e)
{
myCbo.Items.Add(new Ext.Net.ListItem("one", "1"));
myCbo.Items.Add(new Ext.Net.ListItem("two", "2"));
myCbo.Items.Add(new Ext.Net.ListItem("three", "3"));
}
last svn update: 08/26/2011tks :)
[]'s
Last edited by Daniil; Sep 20, 2011 at 11:17 AM.
Reason: [CLOSED]