<ext:RadioGroup ID="RadioGroupBody" runat="server" FieldLabel="Body" LabelWidth="150"
Width="400" ColumnsNumber="3">
<DirectEvents>
<Change OnEvent="RadioGroup_Change" />
</DirectEvents>
</ext:RadioGroup>
code behind..
RadioGroupBody.Items.Add(new Radio
{
ID = "Text",
IDMode = IDMode.Explicit,
BoxLabel = "Text",
InputValue = "Text",
Checked = ResouceContentFormat == "Text" ? true : false
});
RadioGroupBody.Items.Add(new Radio
{
ID = "Url",
IDMode = IDMode.Explicit,
BoxLabel = "URL",
InputValue = "Url",
Checked = ResouceContentFormat == "Url" ? true : false
});
RadioGroupBody.Items.Add(new Radio
{
ID = "File",
IDMode = IDMode.Explicit,
BoxLabel = "Upload",
InputValue = "File",
Checked = ResouceContentFormat == "File" ? true : false
});
RadioGroupBody.AddTo(formpanel1);
protected void RadioGroup_Change(object sender, DirectEventArgs e)
{
RadioGroup rg = sender as RadioGroup;
X.Msg.Alert("Change", rg.CheckedItems[0].ID).Show();
}