I have a radiobuttonlist which is a trigger for three other controls. The issue I am having is that the OnSelectedIndexChanged event is not firing the second time around. This means that the rest of the controls encompassed by the trigger doesn't update.
I need help determing why the three controls are not being updated by Ajax the second time around. Notice the boldfaced items which are the key to getting this to work.
If I remove the AJAX manager, the controls get updated successfully the second time around, but you can see the postback occurring in the browser which I ultimately don't want to see.
Here is my html:
<code>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rblDataType">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="lstPatientEDLogs" />
<telerik:AjaxUpdatedControl ControlID="pnlNoPatientInfoCounts" />
<telerik:AjaxUpdatedControl ControlID="pnlPatientInfoCounts" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
</code>
<code>
<asp:Panel ID="pnlData" runat="server" GroupingText="Data Type for DOS" Width="1100px">
<asp:RadioButtonList ID="rblDataType" RepeatDirection="Horizontal" TextAlign="Right"
runat="server" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="rblDataType_SelectedIndexChanged">
<asp:ListItem Text="No Patient Info" Selected="True"></asp:ListItem>
<asp:ListItem Text="Patient Info"></asp:ListItem>
<asp:ListItem Text="Visit Info" Enabled="false"></asp:ListItem>
</asp:RadioButtonList>
</asp:Panel>
</code>
<code>
<asp:Panel ID="pnlNoPatientInfoCounts" runat="server" GroupingText="No Patient Info Count"
Width="1100px">
<table>
<tr>
<td>
<asp:Label ID="lblDataNETCnt1" runat="server" Text="DataNET: "></asp:Label>
<asp:Label ID="lblDataNETCntData1" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblDataNET_PendingCnt1" runat="server" Text="DataNET/Pending: "></asp:Label>
<asp:Label ID="lblDataNET_PendingCntData1" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblDataNET_DeficientCnt1" runat="server" Text="DataNET/Deficient: "></asp:Label>
<asp:Label ID="lblDataNET_DeficientCntData1" runat="server" Text="0"></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
</code>
</code>
<asp:Panel ID="pnlPatientInfoCounts" runat="server" GroupingText="Patient Info Count"
Width="1100px">
<table>
<tr>
<td>
<asp:Label ID="lblDataNET_PendingCnt2" runat="server" Text="DataNET/Pending: "></asp:Label>
<asp:Label ID="lblDataNET_PendingCntData2" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblDataNET_DeficientCnt2" runat="server" Text="DataNET/Deficient: "></asp:Label>
<asp:Label ID="lblDataNET_DeficientCntData2" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblCodeNETCnt2" runat="server" Text="CodeNET: "></asp:Label>
<asp:Label ID="lblCodeNETCntData2" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblCodeNET_PendingCnt2" runat="server" Text="CodeNET/Pending: "></asp:Label>
<asp:Label ID="lblCodeNET_PendingCntData2" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblCodeNET_DeficientCnt2" runat="server" Text="CodeNET/Deficient: "></asp:Label>
<asp:Label ID="lblCodeNET_DeficientCntData2" runat="server" Text="0"></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
</code>
Here is my server side code-behind: This is the code that changes the other three controls. However, when the index is changed for the radiobuttonlist, the second time around, a postback is never fired. It gets hit the first time I change the index of the radiobuttonlist, but not the second time.
<code>
protected void rblDataType_SelectedIndexChanged(Object sender, EventArgs e)
{
LoadDatesofSvc();
}
</code>
I need help determing why the three controls are not being updated by Ajax the second time around. Notice the boldfaced items which are the key to getting this to work.
If I remove the AJAX manager, the controls get updated successfully the second time around, but you can see the postback occurring in the browser which I ultimately don't want to see.
Here is my html:
<code>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rblDataType">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="lstPatientEDLogs" />
<telerik:AjaxUpdatedControl ControlID="pnlNoPatientInfoCounts" />
<telerik:AjaxUpdatedControl ControlID="pnlPatientInfoCounts" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
</code>
<code>
<asp:Panel ID="pnlData" runat="server" GroupingText="Data Type for DOS" Width="1100px">
<asp:RadioButtonList ID="rblDataType" RepeatDirection="Horizontal" TextAlign="Right"
runat="server" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="rblDataType_SelectedIndexChanged">
<asp:ListItem Text="No Patient Info" Selected="True"></asp:ListItem>
<asp:ListItem Text="Patient Info"></asp:ListItem>
<asp:ListItem Text="Visit Info" Enabled="false"></asp:ListItem>
</asp:RadioButtonList>
</asp:Panel>
</code>
<code>
<asp:Panel ID="pnlNoPatientInfoCounts" runat="server" GroupingText="No Patient Info Count"
Width="1100px">
<table>
<tr>
<td>
<asp:Label ID="lblDataNETCnt1" runat="server" Text="DataNET: "></asp:Label>
<asp:Label ID="lblDataNETCntData1" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblDataNET_PendingCnt1" runat="server" Text="DataNET/Pending: "></asp:Label>
<asp:Label ID="lblDataNET_PendingCntData1" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblDataNET_DeficientCnt1" runat="server" Text="DataNET/Deficient: "></asp:Label>
<asp:Label ID="lblDataNET_DeficientCntData1" runat="server" Text="0"></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
</code>
</code>
<asp:Panel ID="pnlPatientInfoCounts" runat="server" GroupingText="Patient Info Count"
Width="1100px">
<table>
<tr>
<td>
<asp:Label ID="lblDataNET_PendingCnt2" runat="server" Text="DataNET/Pending: "></asp:Label>
<asp:Label ID="lblDataNET_PendingCntData2" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblDataNET_DeficientCnt2" runat="server" Text="DataNET/Deficient: "></asp:Label>
<asp:Label ID="lblDataNET_DeficientCntData2" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblCodeNETCnt2" runat="server" Text="CodeNET: "></asp:Label>
<asp:Label ID="lblCodeNETCntData2" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblCodeNET_PendingCnt2" runat="server" Text="CodeNET/Pending: "></asp:Label>
<asp:Label ID="lblCodeNET_PendingCntData2" runat="server" Text="0"></asp:Label>
</td>
<td>
<asp:Label ID="lblCodeNET_DeficientCnt2" runat="server" Text="CodeNET/Deficient: "></asp:Label>
<asp:Label ID="lblCodeNET_DeficientCntData2" runat="server" Text="0"></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
</code>
Here is my server side code-behind: This is the code that changes the other three controls. However, when the index is changed for the radiobuttonlist, the second time around, a postback is never fired. It gets hit the first time I change the index of the radiobuttonlist, but not the second time.
<code>
protected void rblDataType_SelectedIndexChanged(Object sender, EventArgs e)
{
LoadDatesofSvc();
}
</code>