Hi
I'm having a problem using the ReportViewer with radAjaxManager (Prometheus)
I have a button click event which updates the report datasource
HOWEVER with radAjaxManager enabled,
the report doesn't update correctly and shows zero records
When the radAjaxManager AjaxEnabled is set to false
The report refreshes successfully...
I've tried hooking the radAjaxManager to both the Reportviewer and a panel containing the Reportviewer
Hope someone can help...
Here's the ASPX
===============
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ButtonRefresh">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ReportViewer1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<asp:Button ID="ButtonRefresh" runat="server" Text="Refresh" />
<br />
<asp:Panel ID="PanelReport" runat="server">
<telerik:ReportViewer id="ReportViewer1" runat="server">
</telerik:ReportViewer>
</asp:Panel>
This is the code behind
=======================
Protected Sub ButtonRefresh_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonRefresh.Click
Me.ReportBindIt(" FullName LIKE '%hoey%' ")
End Sub
Public Sub ReportBindIt(ByVal Criteria As String)
Dim TelerikReport As New CaseReports.A4_CaseReport1
Dim sqlSelectCommand1 As New SqlCommand()
Dim sqlDataAdapter1 As New SqlDataAdapter()
Dim sqlConnection1 As New SqlConnection()
sqlConnection1.ConnectionString = GetConnectionString()
sqlSelectCommand1.CommandText = "dbo.procGetReportCaseList1"
sqlSelectCommand1.CommandType = Data.CommandType.StoredProcedure
sqlSelectCommand1.Parameters.AddWithValue("Criteria", Criteria)
sqlSelectCommand1.Parameters.AddWithValue("SortExpression", "fileref DESC")
sqlSelectCommand1.Connection = sqlConnection1
sqlDataAdapter1.SelectCommand = sqlSelectCommand1
TelerikReport.DataSource = sqlDataAdapter1
ReportViewer1.Report = TelerikReport
End Sub
I'm having a problem using the ReportViewer with radAjaxManager (Prometheus)
I have a button click event which updates the report datasource
HOWEVER with radAjaxManager enabled,
the report doesn't update correctly and shows zero records
When the radAjaxManager AjaxEnabled is set to false
The report refreshes successfully...
I've tried hooking the radAjaxManager to both the Reportviewer and a panel containing the Reportviewer
Hope someone can help...
Here's the ASPX
===============
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ButtonRefresh">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ReportViewer1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<asp:Button ID="ButtonRefresh" runat="server" Text="Refresh" />
<br />
<asp:Panel ID="PanelReport" runat="server">
<telerik:ReportViewer id="ReportViewer1" runat="server">
</telerik:ReportViewer>
</asp:Panel>
This is the code behind
=======================
Protected Sub ButtonRefresh_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonRefresh.Click
Me.ReportBindIt(" FullName LIKE '%hoey%' ")
End Sub
Public Sub ReportBindIt(ByVal Criteria As String)
Dim TelerikReport As New CaseReports.A4_CaseReport1
Dim sqlSelectCommand1 As New SqlCommand()
Dim sqlDataAdapter1 As New SqlDataAdapter()
Dim sqlConnection1 As New SqlConnection()
sqlConnection1.ConnectionString = GetConnectionString()
sqlSelectCommand1.CommandText = "dbo.procGetReportCaseList1"
sqlSelectCommand1.CommandType = Data.CommandType.StoredProcedure
sqlSelectCommand1.Parameters.AddWithValue("Criteria", Criteria)
sqlSelectCommand1.Parameters.AddWithValue("SortExpression", "fileref DESC")
sqlSelectCommand1.Connection = sqlConnection1
sqlDataAdapter1.SelectCommand = sqlSelectCommand1
TelerikReport.DataSource = sqlDataAdapter1
ReportViewer1.Report = TelerikReport
End Sub