PDA

View Full Version : [CLOSED] Radio Button help



heysol
Oct 15, 2008, 3:50 PM
hi everybody

Does anybody have an example with a radio button because i tried it but i couldnīt find out how to use the radio button. Iīve been looking for some examples http://examples2.ext.net/ but i didnīt find any

I want to call a C# method when i click on a radio button but i couldnīt if anybody has an example i will appreciate it a lot

Thanks

Vladimir
Oct 16, 2008, 7:53 AM
Do you mean Coolite Radio control or ASP.NET RadionButton?

geoffrey.mcgill
Oct 17, 2008, 5:35 AM
Hi heysol,

For running server-side events you have a couple options that will depend on whether you want an AjaxEvent or PostBack. For an AjaxEvent, the <Check> event will fire.

Example


<ext:Radio ID="Radio1" runat="server">
<AjaxEvents>
<Check OnEvent="Radio1_Checked" />
</AjaxEvents>
</ext:Radio>

For an old-school postback you'll want to use the OnCheckedChanged event.

Example


<ext:Radio ID="Radio1" runat="server" OnCheckedChanged="Radio1_Checked" />

Hope this helps.

heysol
Oct 17, 2008, 12:01 PM
thanks man i made a mistake and i didnīt notice thanks for your help !!!