PDA

View Full Version : [CLOSED] How to intercept a click in radio



Oliver
Nov 28, 2012, 12:32 PM

Daniil
Nov 28, 2012, 2:29 PM
Hi Oliver,

Please clarify - do you need to intercept to prevent checking the radio?

Oliver
Nov 29, 2012, 10:24 AM
Hi Oliver,

Please clarify - do you need to intercept to prevent checking the radio?

Hi Daniil,

Actually, I need to make some actions when the user click on a radio button, Now it works, I use a RadioGroup and I move the listener <change> to the RadioGroup and works.

Thanks!.

Olivio

Daniil
Nov 29, 2012, 6:52 PM
The Change listeners trigger well in the example below.

We would be happy to investigate your sample where it doesn't work.

Example

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>

<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:Radio ID="Radio1" runat="server" Name="group1">
<Listeners>
<Change Handler="alert(this.id + ' ' + newValue);" />
</Listeners>
</ext:Radio>

<ext:Radio ID="Radio2" runat="server" Name="group1">
<Listeners>
<Change Handler="alert(this.id + ' ' + newValue);" />
</Listeners>
</ext:Radio>
</form>
</body>
</html>