Sep 16, 2013, 12:46 PM
[CLOSED] Multicombo deselect all problem
Hi,
Can you tell me what's wrong with this code. I would like to deselect all selected items when unchecking the first item. But it's not working:
Can you tell me what's wrong with this code. I would like to deselect all selected items when unchecking the first item. But it's not working:
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>MultiCombo</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:MultiCombo ID="MultiCombo1" runat="server" Width="260">
<Items>
<ext:ListItem Text="Select All" Value="0" />
<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>
<Listeners>
<Select Handler="if (index==0) #{MultiCombo1}.selectAll();"/>
<BeforeDeselect Handler="if (index==0) #{MultiCombo1}.clearValue();"/>
</Listeners>
</ext:MultiCombo>
</form>
</body>
</html>
Martin
Last edited by Daniil; Sep 17, 2013 at 8:17 AM.
Reason: [CLOSED]