Jul 17, 2013, 12:54 PM
[CLOSED] Checkbox is not getting clear after de-selecting
Hello,
I am using MultiCombo box in my code and when we de-select any of item it is not clearing the checkbox selection. In the older version it was working fine, but in new version of ext.net controls it is not working. I am attaching the sample code and screen shot for the same. Could you please look into this.
I am using MultiCombo box in my code and when we de-select any of item it is not clearing the checkbox selection. In the older version it was working fine, but in new version of ext.net controls it is not working. I am attaching the sample code and screen shot for the same. Could you please look into this.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Combo.aspx.cs" Inherits="Ext.NetSamples.Combo" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>MultiCombo - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
<script>
var updateButtonText = function (item, checked) {
var text = [];
item.parentMenu.items.each(function (item) {
if (item.checked) {
text.push(item.text);
}
});
if (text.length == 0) {
App.Button1.setText("[Select Colors]");
} else {
App.Button1.setText("[" + text.join(",") + "]");
}
};
</script>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager runat="server" />
<h2>Simple MultiCombo</h2>
<ext:MultiCombo runat="server" Width="260">
<Items>
<ext:ListItem Text="Item 1" Value="1" />
<ext:ListItem Text="Item 2" Value="2" />
<ext:ListItem Text="Item 3" Value="3" />
<ext:ListItem Text="Item 4" Value="4" />
<ext:ListItem Text="Item 5" Value="5" />
</Items>
<SelectedItems>
<ext:ListItem Value="2" />
<ext:ListItem Index="4" />
</SelectedItems>
</ext:MultiCombo>
<br />
</form>
</body>
</html>
Last edited by Daniil; Jul 17, 2013 at 5:11 PM.
Reason: Please use [CODE] tags, [CLOSED]