Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SP ReportViewer refreshes on any postbacks

$
0
0
I am having refresh issue with report viewer web parts.
I have two custom web parts; each containing dropdowns and a report viewer. Both are in different update panel. If the value in one drop down box is changed, it refreshes both report viewers in two different. I would like to referesh the report viewer in which the drop down belongs to.
I tried to solve the issue even with AsyncPostBackTriggers, but no luck. Here is the mark of one such custom webpart containing dropdowns and report viewer. Help or suggestion will be apprciated.
<asp:UpdatePanelID="UpdatePanel1"runat="server">
   <ContentTemplate>
       <table>
           <tr>
               <tdstyle="text-align: left">
                   <asp:DropDownListID="ddlReqCategories"runat="server"AutoPostBack="True"OnSelectedIndexChanged="ddlReqCategories_SelectedIndexChanged">
                   </asp:DropDownList>
                   &nbsp;
                   <asp:DropDownListID="ddlDuration"runat="server"AutoPostBack="True"OnSelectedIndexChanged="ddlDuration_SelectedIndexChanged">
                       <asp:ListItemValue="3">3 months</asp:ListItem>
                       <asp:ListItemValue="6">6 months</asp:ListItem>
                       <asp:ListItemValue="9">9 months</asp:ListItem>
                       <asp:ListItemValue="12">12 months</asp:ListItem>
                   </asp:DropDownList>
               </td>
           </tr>
           <tr>
               <tdstyle="text-align: left">
                   <rsweb:ReportViewerID="reportViewerByDuration"runat="server"Font-Names="Verdana"
                       Font-Size="8pt"ProcessingMode="Remote"WaitMessageFont-Names="Verdana"WaitMessageFont-Size="14pt"
                       Height="380px"Width="480px"ShowBackButton="False"ShowCredentialPrompts="False"
                       ShowDocumentMapButton="False"ShowExportControls="False"ShowFindControls="False"
                       ShowPageNavigationControls="False"ShowParameterPrompts="False"ShowPrintButton="False"
                       ShowPromptAreaButton="False"ShowRefreshButton="False"ShowToolBar="False"ShowWaitControlCancelLink="False"
                       ShowZoomControl="False"SizeToReportContent="True">
                       <ServerReportReportPath="http://dev-spoint/apps/HR/Report%20Library/ApprovalStatus.rdl"
                           ReportServerUrl="http://localhost/ReportServer/" />
                       <LocalReport>
                           <DataSources>
                               <rsweb:ReportDataSourceDataSourceId="ObjectDataSource1"Name="CustDS" />
                           </DataSources>
                      </LocalReport>
                   </rsweb:ReportViewer>
               </td>
           </tr>
       </table>
   </ContentTemplate>
   <%--<Triggers>
       <asp:AsyncPostBackTrigger ControlID="ddlDuration" EventName="SelectedIndexChanged" />
       <asp:AsyncPostBackTrigger ControlID="ddlReqCategories" EventName="SelectedIndexChanged" />
   </Triggers>--%>
</asp:UpdatePanel>

Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>