This question is locked. New answers and comments are not allowed.
Louis Bouchard
Top achievements
Rank 1
Louis Bouchard
asked on 21 Feb 2012, 03:23 PM
Hello,
I have 1 report in each tab. But, on the second one I got this result (see attachement).
When I press the refresh button of the report everything is ok.
Any idea or how to refresh the second report while I still on the first one?
I have 1 report in each tab. But, on the second one I got this result (see attachement).
When I press the refresh button of the report everything is ok.
Any idea or how to refresh the second report while I still on the first one?
3 Answers, 1 is accepted
0
Hello Louis,
I am not sure what may be causing the problem. Could you send a sample project so I can check the exact setup?
All the best,
Daniel
the Telerik team
I am not sure what may be causing the problem. Could you send a sample project so I can check the exact setup?
All the best,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Louis
Top achievements
Rank 1
Iron
Iron
Iron
answered on 24 Feb 2012, 05:46 PM
Hello Daniel,
Maybe be this can help you to see what's is going on (because my project is big and related to a real database) :
The partial view FicheDescriptive (.aspx)
The second partial view
Maybe be this can help you to see what's is going on (because my project is big and related to a real database) :
CSHTML file@model Securite.Models.Description@using Telerik.Web.Mvc.UI@{ Html.Telerik().TabStrip() .Name("TabStripChoixEtats").Items(tabstrip =>{ tabstrip.Add() .Text("Rapport #1") .Content(Html.Partial("FicheDescriptive", null, new ViewDataDictionary { { "NoFiche", Model.NoFiche } }).ToHtmlString() ); tabstrip.Add() .Text("Rapport #2") .Content(Html.Partial("ProcedureIntervention", null, new ViewDataDictionary { { "NoFiche", Model.NoFiche } }).ToHtmlString() );}).SelectedIndex(0).Render();} @(Html.Telerik().ScriptRegistrar().Globalization(true))@(Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.min.css").Add("telerik.vista.min.css")))The partial view FicheDescriptive (.aspx)
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" Culture="auto:fr-CA" UICulture="auto:fr-CA" %><%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %><head id="Head1" runat="server"></head><form id="form1" runat="server"><telerik:ReportViewer ID="ReportViewerFiche" runat="server" BorderStyle="Solid" BorderWidth="1" Report="Rapports.Fiches.Fiche001.FicheDescriptive, Rapports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Width="100%" onload="ReportViewerFicheDescriptive_Load" Height="500px" ViewMode="PrintPreview" ProgressText="<%$ Resources:GlobalesResources, GenerationDuRapport %>"></telerik:ReportViewer></form><script runat="server"> protected void ReportViewerFicheDescriptive_Load(object sender, EventArgs e) { Telerik.Reporting.Report report = (Telerik.Reporting.Report)this.ReportViewerFiche.Report; report.ReportParameters["strNoFiches"].Value = ViewData["NoFiche"].ToString(); }</script>The second partial view
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" Culture="auto:fr-CA" UICulture="auto:fr-CA" %><%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %><!-- The styles of the web report viewer's toolbar are messed up. Check for run...="serv..." attribute in the web page's head tag - it is required.--><head id="Head1" runat="server"></head><form id="form1" runat="server"><telerik:ReportViewer ID="ReportViewerProcedure" runat="server" BorderStyle="Solid" BorderWidth="1" Report="Rapports.Procedure.ProcedureIntervention.ProcedureIntervention, Rapports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Width="100%" onload="ReportViewerProcedureIntervention_Load" Height="500px" ViewMode="PrintPreview" ProgressText="<%$ Resources:GlobalesResources, GenerationDuRapport %>"></telerik:ReportViewer></form><script runat="server"> protected void ReportViewerProcedureIntervention_Load(object sender, EventArgs e) { Telerik.Reporting.Report report = (Telerik.Reporting.Report)this.ReportViewerProcedure.Report; report.ReportParameters["strNoFiche"].Value = ViewData["NoFiche"].ToString(); }</script>0
Hello Louis,
The code seems correct and I am unable to reproduce the problem locally. Which leads me to the thought that there are some custom styles applied that cause the misplacement. Therefore, I will need a sample project with your current setup so I can investigate further.
Kind regards,
Daniel
the Telerik team
The code seems correct and I am unable to reproduce the problem locally. Which leads me to the thought that there are some custom styles applied that cause the misplacement. Therefore, I will need a sample project with your current setup so I can investigate further.
Kind regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.