Aug 19, 2010, 5:03 PM
[CLOSED] [1.0] MultiCombo Change listener not working as expected
On this page, the first 2 items in the combo box are selected. if you uncheck the 2nd item and click out of the combo, you see the notification. If you recheck it, nothing happens. Also, after rechecking it, unchecking it no longer displays the notification.
Am I doing something wrong?
Am I doing something wrong?
<!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></title>
<head>
<script runat="server">
<Ext.Net.DirectMethod()> _
Public Sub RefreshSomething()
Ext.Net.Notification.Show( _
New Ext.Net.NotificationConfig With { _
.Title = "Test", _
.HideDelay = 1000, _
.Width = 300, _
.Html = "Selected: " & Join((From x In TheChoices.SelectedItems Select x.Text).ToArray, ", "), _
.AlignCfg = New Ext.Net.NotificationAlignConfig With { _
.ElementAnchor = Ext.Net.AnchorPoint.BottomLeft, _
.TargetAnchor = Ext.Net.AnchorPoint.BottomLeft, _
.OffsetX = 20, _
.OffsetY = -20 _
} _
} _
)
End Sub
</script>
</head>
</head>
<body>
<form id="form1" runat="server">
<script type="text/javascript">
var refreshSomething = function() {
Ext.net.DirectMethods.RefreshSomething({
success: function(result) {
var x = 1;
}
});
};
</script>
<ext:ResourceManager runat="server" />
<ext:MultiCombo ID="TheChoices" runat="server">
<Items>
<ext:ListItem Text="Test1" Value="1" />
<ext:ListItem Text="Test2" Value="2" />
<ext:ListItem Text="Test3" Value="3" />
</Items>
<SelectedItems>
<ext:SelectedListItem Value="1" />
<ext:SelectedListItem Value="2" />
</SelectedItems>
<Listeners>
<Change Handler="refreshSomething();" />
</Listeners>
</ext:MultiCombo>
</form>
</body>
</html>
Last edited by Daniil; Aug 25, 2010 at 12:35 PM.
Reason: Marked as [CLOSED]. No more information was provided.