Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > TabStrip > Reports under tabs
Telerik MVC Extensions are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, post them in the pertinent Kendo UI forums.

Not answered Reports under tabs

Feed from this thread
  • Louis Bouchard Intermediate avatar

    Posted on Feb 21, 2012 (permalink)

    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?


    Attached files

  • Daniel Daniel admin's avatar

    Posted on Feb 24, 2012 (permalink)

    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
    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.

  • Louis avatar

    Posted on Feb 24, 2012 (permalink)

    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) :

    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>

  • Daniel Daniel admin's avatar

    Posted on Feb 29, 2012 (permalink)

    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
    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.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > TabStrip > Reports under tabs
Related resources for "Reports under tabs"

ASP.NET MVC TabStrip Features  |  Documentation  |  Demos  |  Telerik TV ]