I'm seeing strange behaviour from Ext.Net 2.0: RadioGroup.CheckedItems is always zero in my change handler callback. In my code below RadioGroup1.CheckedItems is ALWAYS zero after checking. What am I doing wrong / how can I solve this?
[DirectMethod]
public void TxtVisibility()
{
foreach (var item in RadioGroup1.CheckedItems)
{
if (item.ID == "rdHourly")
{
txtPerHour.Hidden = false;
txtAtTime.Hidden = true;
}
else if (item.ID == "rdAtHourly")
{
txtPerHour.Hidden = true;
txtAtTime.Hidden = false;
}
}
}
My calling code:
<ext:RadioGroup ID="RadioGroup1"
runat="server"
FieldLabel=""
ColumnsNumber="1">
<Items>
<ext:Radio ID="rdHourly" FieldLabel="IsEveryPerHour"
Name="IsEveryPerHour" runat="server"
BoxLabel="Per Hour(s)" Padding="10">
</ext:Radio>
<ext:Radio ID="rdAtHourly" FieldLabel="IsAtHour"
Name="IsAtHour" runat="server"
BoxLabel="At" Padding="10">
</ext:Radio>
</Items>
<Listeners>
<Change Handler="App.direct.TxtVisibility();" ></Change>
</Listeners>
</ext:RadioGroup>