Telerik Forums
Reporting Forum
1 answer
44 views

Hello,

I am using the Telerik Angular Report Viewer and Reporting REST service to configure Telerik Reporting. However, I am unable to obtain the authorization token needed to set the connection string. I have implemented the Telerik custom report source resolver in my application. After reading a few articles, I learned that the authorizationToken can be set in the HTML file. However, I am unsure how to apply this token in my report controller or within my custom source resolver.

Telerik angular viewer :

<div class="modal fade show full-width" tabindex="-1" role="dialog" style="display:block">
            <div class="viewer-container">
                <tr-viewer #viewer1
                                     [containerStyle]="viewerContainerStyle"
                                     [serviceUrl]="msServiceURL"
                                     [reportSource]="mobjReportSrc"
                                     [viewMode]="'CONTINUOUS_SCROLL'"
                                     [scaleMode]="'FIT_PAGE_WIDTH'"
                                     [scale]="1.0"
                                     [ready]="ready"
                                     [viewerToolTipOpening]="viewerToolTipOpening"
                                     [enableAccessibility]="false"
                                     [keepClientSideReportInstance] = "true"
                                     [authenticationToken] ="strToken"> </tr-viewer>
            </div>

</div>

Report controller -

[Route("api/BME/[Controller]")]
[ApiController]
public class ReportsController : ReportsControllerBase
{
    public int ClientSessionTimeout { get; set; }
    public ReportsController(IReportServiceConfiguration reportServiceConfiguration, IConnectionFactory connectionFactory)
        : base(reportServiceConfiguration)
    {

    }

 

Thank You,

Pragati

 

Dimitar
Telerik team
 answered on 29 Jan 2025
1 answer
38 views
How do we get rid of this (see screenshot), this wasn't shown before and this button does nothing.
Dimitar
Telerik team
 answered on 29 Jan 2025
2 answers
29 views

I am upgrading my Blazor application to .Net 9 and changing the report viewer from the older Blazor viewer to the new Blazor Native viewer and I have found that when I use the search to find text within a report that the text when found is not highlighted as it was in the previous version.  I've followed the instructions for configuring the viewer and everything else seems to be working correctly.  I'm not receiving any error messages so I don't know if this is just a missing feature not implemented in the newer Native viewer.

 

Carl
Top achievements
Rank 1
Iron
 answered on 28 Jan 2025
1 answer
25 views

Hi, 

Do we have any property to pass auth token to web report designer?

I have seen the way around to intercept fetch and pass token but its going to add header in all call from applications.

Can we please add a property to add token like we have in Report Viewer.

 

Thanks

 

Dimitar
Telerik team
 answered on 28 Jan 2025
4 answers
888 views

Greetings.!

how i can send parameters from asp .net core project and show it in telerik reporting with an conexion  mySQL.
attached proyect

Regards.!

Dimitar
Telerik team
 updated answer on 27 Jan 2025
1 answer
218 views

Is it possible to add the code from the HTML5 report viewer to a view (cshtml file) in asp.net core 2.2 and have it work?  I am trying to avoid any static files. I followed this example:  https://docs.telerik.com/reporting/manual-setup-of-html5-report-viewer-in-asp-net-core-2.  I put the head info in the _layout.cshtml file and the viewer code on the index.cshtml.  It throws this error:

Uncaught TypeError: $(...).telerik_ReportViewer is not a function
    at HTMLDocument.<anonymous> ((index):87)
    at l (jquery-3.3.1.min.js:2)
    at c (jquery-3.3.1.min.js:2)

Dimitar
Telerik team
 updated question on 27 Jan 2025
1 answer
366 views

Hai,

I am spending hours and hours trying to get a simple Telerik Report to work in my Blazor web app.
All documentation on the website is for ASP.Net Core 6 and the ASP.Core 7 samples I can find, do not work for me...

I have a simple Blazor Web App that communicates with a Blazor Server using controllers and endpoints like. The data is stored in a SQL Server.

I have a table 'Genders' and I simply want to show a report with the fields id and name of table genders using the 'api/gender' endpoint to get the genders: 

var response = await httpDefaultClient.GetAsync("api/gender");
        if (response.IsSuccessStatusCode)
        {
            genderList = await response.Content.ReadFromJsonAsync<List<GenderModel>>();
        }

Is there a complete walkthough, thus including creating the Telerik report itself, creating the reportcontroller, in the server, adding services etc.

I am totally new to Telerik and I simply do not understand how to implement Telerik in my application.
Hope somebody can direct me to a good, working, sample or walkthrough... 

Regards, Marc

3 answers
51 views

I am getting html content from database and i am showing that in telerik report details section in table .In table body i have added htmltextbox . There is lot's of space between row and also need to align whole content in align left .but i am unable to get .I try replace function still not working.

Could u please help me to achieve this. I notice while loading the report  Telerik applying some of the classes 

If we add single &nbsp; it giving to much space due to Telerik rendering couple of tag by default

Petar
Telerik team
 answered on 23 Jan 2025
10 answers
1.1K+ views

I'm  having an issue with the parameters for a report I'm working on.

The query which is the data source for the report is a fairly complex one:

 

SELECT sub.AssignedCity, SUM(sub.TotalIndividuals) AS TotalIndividuals, SUM(sub.SumOfBoxes) As TotalBoxes, SUM(sub.SumOfMealsServed) As     TotalMealsServed, SUM(sub.SumOf60AndOverServed) AS TotalOver60Served, SUM(sub.SumOf18AndUnder) AS Total18AndUnderServed
FROM(

SELECT EntryMonth, EntryYear, AgencyID, AssignedCity, SUM(IndividualsServed) AS TotalIndividuals, SUM(Boxes) AS SumOfBoxes, SUM(MealsServed) AS SumOfMealsServed,,SUM(Over59Served) AS SumOf60AndOverServed, SUM(Over59Served) AS SumOf18AndUnder

FROM AgencyBoxes

GROUP BY EntryMonth, EntryYear, AgencyID, AssignedCity
UNION
SELECT EntryMonth, EntryYear, HouseholdID, AssignedCity, SUM(IndividualsServed) AS TotalIndividuals, SUM(Boxes) AS SumOfBoxes, SUM(MealsServed) AS SumOfMealsServed,
SUM(Over59Served) AS SumOf60AndOverServed, SUM(Over59Served) AS SumOf18AndUnder
FROM Boxes
GROUP BY EntryMonth, EntryYear, HouseholdID, AssignedCity
) sub
WHERE EntryMonth = @prmEntryMonth AND EntryYear = @prmEntryYear
GROUP BY AssignedCity

I'm getting an error saying that I must declare a scalar variable for the two parameters. I've never seen this error before, and I have no idea what the issue is.

I'm attaching all relevant files detailing report parameters, data source parameters, etc. Any advice would be very much appreciated.

Dimitar
Telerik team
 updated answer on 23 Jan 2025
1 answer
30 views

I have embedded Telerik report designer in angular application. I want to clone the existing report and create new report programmatically.  Can anyone provide pointer on how to achieve this? Closest I could find is this i.e. copy over all the report components one by one but I find it laborious and little risky if I miss anything while copying over. 

Thanks!!

Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?