Nov 16, 2015, 10:28 PM
[CLOSED] Prevent default action in radio group not working
Hello, why is this not working? (the radio gets selected every time, it shouldn't)
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
}
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
<script type="text/javascript">
var change = function (item) {
console.debug(item);
};
</script>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:RadioGroup runat="server" FieldLabel="Rating" ColumnsNumber="3" AutomaticGrouping="false">
<Items>
<ext:Radio runat="server" Name="rating" InputValue="0" BoxLabel="A" ReadOnly="false" />
<ext:Radio runat="server" Name="rating" InputValue="1" BoxLabel="B" ReadOnly="false" />
<ext:Radio runat="server" Name="rating" InputValue="2" BoxLabel="C" ReadOnly="false" />
</Items>
<Listeners>
<Change Handler="change(item);" PreventDefault="False" StopEvent="True" StopPropagation="True"></Change>
</Listeners>
</ext:RadioGroup>
</body>
</html>
Last edited by Daniil; Nov 17, 2015 at 4:35 PM.
Reason: [CLOSED]