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

tabstrip

6 Answers 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Louis
Top achievements
Rank 1
Iron
Iron
Iron
Louis asked on 03 Jan 2017, 08:52 PM

Hello,

I use tabstrip to display my report but when I click on the 3th tab (by example) I need to refresh the report to see the data.

 

Any Idea.

 

6 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 05 Jan 2017, 10:35 AM
Hi Louis,

If you are using the HTML5 Viewer, please check if each viewer added on the page has an unique ID.

If you are using the old ASP.NET WebForms ReportViewer, test adding the viewer on creating the tab, where each viewer requires an unique non-static ID. Please note that the old WebForms ReportViewer is obsolete as of Q3 2015 and we recommend you switching to the HTML5 Viewer - Migrate to the HTML5 Viewer from the old ASP.NET WebForms ReportViewer control.


If you need further help, please post further details about the settings of the tabstrip and the used Telerik Reporting Viewer.

Regards,
Stef
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
0
Louis
Top achievements
Rank 1
Iron
Iron
Iron
answered on 05 Jan 2017, 03:39 PM

Hello Stef,

Thank you for the information but i still stuck with this "bug".

 

My HTML5 Viewer (located in ListeMsExcel.aspx) have a unique ID :

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
 
<%@ Register assembly="Telerik.ReportViewer.Html5.WebForms, Version=10.2.16.1025, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.Html5.WebForms" tagprefix="telerik" %>
 
<!DOCTYPE html>
 
 
<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title></title>
</head>
<body>
<form id="form1" runat="server">
 
    <telerik:ReportViewer ID="ReportViewerListeMsExcel" runat="server" Width="100%">
        <ReportSource Identifier="Rapports.ListeParNom, Rapports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" IdentifierType="TypeReportSource">
        </ReportSource>
    </telerik:ReportViewer>
 
</form>
</body>
</html>

 

And my tabstrips are :

 

@using Telerik.Web.Mvc.UI
 
<br /><br />
@{ Html.Telerik().TabStrip()
     .Name("TabStripChoixEtats")
    .Items(tabstrip =>
    {
 
        tabstrip.Add()
        .Text(@Securite.EtatsVaries.Resources.ListeEspacesClosParNumero)
        //.ImageUrl("~/Images/printer30x30.png")      
        .Content(Html.Partial("ListeParNumero").ToHtmlString()
        );
        tabstrip.Add()
        .Text(@Securite.EtatsVaries.Resources.ListeEspacesClosParNom)
        //.ImageUrl("~/Images/printer30x30.png")     
        .Content(Html.Partial("ListeParNom").ToHtmlString()
        );
        tabstrip.Add()
        .Text(@Securite.EtatsVaries.Resources.ListeMsExcelEspacesClos)
        //.ImageUrl("~/Images/printer30x30.png")     
        .Content(Html.Partial("ListeMsExcel").ToHtmlString()
        );
 
    })
    .SelectedIndex(0)
    .ClientEvents(events => events.OnSelect("OnSelect"))
    .Render();
}
@(Html.Telerik().ScriptRegistrar().Globalization(true).jQuery(false))
@(Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.min.css").Add("telerik.vista.min.css")))
<script type="text/javascript">
    function OnSelect(e) {
        var viewer = eval("ReportViewerListeEspacesClosParNom");
        viewer.AdjustReportAreaHeight();
    }
  </script>

 

 

0
Stef
Telerik team
answered on 06 Jan 2017, 04:32 PM
Hi Louis,

Please compare your settings to these of the attached demo project.

If you are using the WebForms wrapper of the HTML5 Viewer, test upgrading to the latest available internal build (your Telerik account - Downloads - Reporting - Latest Internal Build). The build includes a fix related to the hard-coded PersistSession=true of the WebForms wrapper. The PersistSession property preserves the state of the viewer between requests.

If you need further help, please open a support ticket and send us an example illustrating your settings.

Regards,
Stef
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
0
Louis
Top achievements
Rank 1
Iron
Iron
Iron
answered on 06 Jan 2017, 08:01 PM

Hello Stef,

Thanks again for this information.  I appreciate.  I use asp.net MVC so it's possible to use another wrapper that WebForms to use HTML5 Viewer (like directly in a view .cshtml)?  If so, do you have a example?  Thank again and happy new year.

0
Stef
Telerik team
answered on 09 Jan 2017, 05:40 PM
Hi Louis,

You can find attached an MVC project that uses the MVC wrapper of the HTML5 Viewer, where content is displayed in a TabStrip.

Regards,
Stef
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
0
Louis
Top achievements
Rank 1
Iron
Iron
Iron
answered on 09 Jan 2017, 07:22 PM
A big thank you for all this precious information Step.  Have very nice day.
Tags
General Discussions
Asked by
Louis
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Stef
Telerik team
Louis
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or