I have an application that dynamically builds an HTML table and populates it with data server side. (Why the designer did not us a repeater is food for another thread). I have the ability to change the date, and when i do so, the table is supposed to be re-built with the selected date's content.
Server side, the correct date is being passed, and it builds the table correctly. My AjaxLoadingPanel displays while the request is processing, but when the request completes, the original data is still showing... For the life of me i cannot figure out why.
Here is the requisite code:
Server side, the correct date is being passed, and it builds the table correctly. My AjaxLoadingPanel displays while the request is processing, but when the request completes, the original data is still showing... For the life of me i cannot figure out why.
Here is the requisite code:
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"txtDate"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"tblAttendance"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
<
ClientEvents
OnRequestStart
=
"RequestStart"
OnResponseEnd
=
"ResponseEnd"
/>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
Skin
=
"Metro"
>
</
telerik:RadAjaxLoadingPanel
>
<
cc1:TabPanel
ID
=
"tabAttendance"
runat
=
"server"
Height
=
"150"
HeaderText
=
"Attendance"
>
<
ContentTemplate
>
<
asp:Panel
runat
=
"server"
ID
=
"pnlAttendance"
Width
=
"900px"
>
<
asp:Table
ID
=
"tblAttendance"
EnableViewState
=
"False"
runat
=
"server"
class
=
"ResultsTable"
CellSpacing
=
"0"
border
=
"0"
Style
=
"width: 880px; border-collapse: collapse;"
>
</
asp:Table
>
<
br
/>
<
asp:Button
ID
=
"btnAttendanceReturn"
runat
=
"server"
Text
=
"Return"
Width
=
"100px"
Visible
=
"False"
OnClick
=
"BtnReturnClick"
/>
<
asp:Button
ID
=
"btnAttendanceSave"
runat
=
"server"
Text
=
"Save"
Width
=
"100px"
Visible
=
"False"
OnClick
=
"BtnAttendanceSaveClick"
/>
</
asp:Panel
>
</
ContentTemplate
>
</
cc1:TabPanel
>
private
void
GenerateAttendanceTable(
)
{
int
counter = 0;
int
notesColWidth = 550;
const
string
SRowStyle =
"ResultsText"
;
const
string
SRowStyleAlt =
"ResultsTextAlt"
;
tblAttendance.Rows.Clear();
.... GET THE DATA .....
foreach
(var tableRow
in
data.Rows)
{
tblAttendance.Rows.Add(tableRow);
}