Oct 07, 2009, 2:20 PM
[CLOSED] RadioGroup events
Hi,
I use a simple RadioGroup:
Since the RadioGroup markup element does not expose Listeners tags, I subscribe in JavaScript to the RadioGroup 'change' event, but the 'change' event is called after the above Ajax event regardless of the fact that I have called SuspendEvents. Is there a setting for that or is it just not implemented?
Regards,
Tadeusz
I use a simple RadioGroup:
<ext:RadioGroup ID="radioGroup" runat="server" ColumnsNumber="1">
<Items>
<ext:Radio ID="radio1" runat="server" >
</ext:Radio>
<ext:Radio ID="radio2" runat="server">
</ext:Radio>
</Items>
</ext:RadioGroup>
In the server code in an Ajax event, I call:radioGroup.SuspendEvents();
try
{
if ( value )
{
radio1.Checked = true;
radio2.Checked = false;
}
else
{
radio1.Checked = false;
radio2.Checked = true;
}
}
finally
{
radioGroup.ResumeEvents();
}
Actually I also call SuspendEvents/ResumeEvents for each of the radios in the above code.Since the RadioGroup markup element does not expose Listeners tags, I subscribe in JavaScript to the RadioGroup 'change' event, but the 'change' event is called after the above Ajax event regardless of the fact that I have called SuspendEvents. Is there a setting for that or is it just not implemented?
Regards,
Tadeusz