MVC4 and cache telerik reporting

2 posts, 0 answers
  1. Santosh Kumar
    Santosh Kumar avatar
    1 posts
    Member since:
    Sep 2014

    Posted 22 Oct 2014 Link to this post

    Hi,
    I am using telerik reporting on my mvc application and wanted to cache my reports per day (my data remains same for whole day and changes only next day). So I wanted to know best cache mechanism and implementation to attain cache for my reports.

    This is my report code :
    SomePage.aspx :

    <tr>
    <td style="width: 49%; vertical-align: top;">
    <telerik:ReportViewer ID="somereport" runat="server" ToolbarVisible="false">
    <typereportsource typename="somenamespace, AgentTrends, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"></typereportsource>
    </telerik:ReportViewer>
    </td>
    </tr>

    <div id="somedivid">

    @Html.Partial("SomePage")
    </div>

                   
  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 27 Oct 2014 Link to this post

    Hi Santosh,

    An Output cache would store the rendered HTML per report, user settings and data, which is a concept different from the reporting cache management. The purpose of the reporting cache is to store internal information required by the engine to get report's state and resources per client(viewer).

    The reporting cache main task is to avoid the re-processing of the report on each interaction with it. It is for internal usage and is not designed for the purpose you described.


    If your requirements are to return the same report, with the same settings and state per day, you can export it programmatically and display the result on request. All supported rendering formats are listed in the Rendering Extensions article.


    I hope the above information helps you.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top