This is a migrated thread and some comments may be shown as answers.

Reportviewer updating outside of a RadAjaxManager

3 Answers 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
pcrane
Top achievements
Rank 1
pcrane asked on 23 Feb 2009, 07:47 PM
I'm dynamically building a report from a set of parameters in an xml file.  I have categories defined in one drop down list and the list of reports in a second drop down list.  Changes to ListBox1 should only update the values in ListBox2 and changes to ListBox2 should only add textbox controls to Panel1.  However, when I change the values in either box the ReportViewer refreshes the current report.  Even if I change the value in ListBox2 I have to wait for the old report to refresh before I can hit the run button for the second report.

Any ideas?

Thanks,

Paul

<

 

telerik:RadScriptManager ID="RadScriptManager1" Runat="server" LoadScriptsBeforeUI="true"></telerik:RadScriptManager>

 

 

 

<

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="DropDownList1">
<UpdatedControls>

 

<telerik:AjaxUpdatedControl ControlID="DropDownList2" />

 

</UpdatedControls>

 

</telerik:AjaxSetting>

 

<telerik:AjaxSetting AjaxControlID="DropDownList2">

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="Panel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

</AjaxSettings>

 </

 

telerik:RadAjaxManager>

 

 <

 

asp:XmlDataSource ID="dsCategory" runat="server" DataFile="~/TelerikReportsConfig.xml" XPath="ReportCategories/ReportCategory"></asp:XmlDataSource>

 

 

<

 

asp:Label ID="lblCategory" runat="server" Text="Category" Width="96px"></asp:Label>

 

 

<

 

asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="dsCategory" DataTextField="Name" DataValueField="ID" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>

 

 

<br />

 

 

<

 

asp:XmlDataSource ID="dsReports" runat="server" DataFile="~/TelerikReportsConfig.xml" XPath="ReportCategories/ReportCategory/Report"></asp:XmlDataSource>

 

 

<

 

asp:Label ID="lblReports" runat="server" Text="Report" Width="96px"></asp:Label>

 

 

<

 

asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="dsReports" DataTextField="Name" DataValueField="Report" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged"></asp:DropDownList>

 

 

 <br />

 

<br />

 

<

 

asp:Panel ID="Panel1" runat="server"></asp:Panel>

 

<br />

 

<br />

 

 

<

 

asp:Button ID="btnRun" runat="server" onclick="btnRun_Click" Text="Run Report" />

 

 

<

 

telerik:ReportViewer ID="ReportViewer1" runat="server" Visible="True" Width="100%" ></telerik:ReportViewer>

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Feb 2009, 08:28 AM
Hello pcrane,

This is a known issue, that has been addressed in the latest official version - Q3 SP2. Please always check if you are using the latest version before opening an inquiry, as there is a high possibility that we have already issued a fix for an issue.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jose Granja
Top achievements
Rank 1
answered on 11 Feb 2010, 01:22 PM
Hi, I'm using this code:

<telerik:RadAjaxManager  runat="Server" ID="RadAjaxManager1"
        <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="ReportViewer1"
            <UpdatedControls > 
                <telerik:AjaxUpdatedControl  ControlID="ReportViewer1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
     
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007" /> 
    fsdafd 
    <br /> 
        <asp:UpdatePanel ID="UpdatePanel1" runat="server"
           <ContentTemplate> 
                <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"  
                    Font-Size="8pt" BorderWidth="0px" BackColor="LightGray" BorderColor="LightGray" Width="100%"/> 
            </ContentTemplate> 
       </asp:UpdatePanel>                     
    <br /> 


I'm using the Microsoft Reporting Services Component. And the ajax here is not working.... my report still does a post_back in the traditional way and ignores the ajax binding! any ideas why it's not working? it's not doing anything at all the radajaxscriptmanager here... The radscripmanager is defined and it's everything's inside a form tag.

any sugestions??

cheers,

jose
0
Iana Tsolova
Telerik team
answered on 16 Feb 2010, 11:21 AM
Hi Jose,

I suggest that you use only one control to ajaxify specific page content, in your case the ReportViewer, either the RadAjaxManager, or the UpdatePanel but both.

Check it out and if the problem persists, please send us a sample project illustrating the issue you are facing.

Sincerely yours,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
pcrane
Top achievements
Rank 1
Answers by
Steve
Telerik team
Jose Granja
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or