Telerik Forums
Reporting Forum
0 answers
414 views

I would like to populate and disable the From input from the client. I am running into a few issues:

 

1. It appears the viewer page is blocking the bundled javascript include. As a work around I am including the script file in the header which works fine and acceptable for me.

    <script src="@Url.Content("~/scripts/reportsportal.js")"></script>

2. It appears that something is blocking the ability to bind to the event SEND_EMAIL_BEGIN

ex in my script file reportsportal.js I am attempting to bind to the SEND_EMAIL_BEGIN so that I can populate and disable the FROM input using jquery

 

However it appears that my script file is getting blocked and the following message is displayed in the browser console:

Autofocus processing was blocked because a document already has a focused element. 

 

I don't think the script runs at all.

 

$(document).ready(function () {
    if (reportViewer) {

        reportViewer.bind(telerikReportViewer.Events.SEND_EMAIL_BEGIN, function (e) {
            debugger
            console.log(this.id);
        });
    }


});

 

 

 

 

3. As a work around to not being able to bind to SEND_EMAIL_BEGIN , I wired one of the declarative events on the viewer widget:

        .ClientEvents(ev=>ev.PageReady("printPageReady"))

 

In printPageReady I was able to capture the From field with a selector

function printPageReady() {
    var t = $('input[name="from"]')
    t.val('test@yahoo.com')
}

Setting val on input[name="from"] DOES NOT generate any exceptions and checking the variable t in the console shows that a value has been assigned however when the Send Email dialog pops up the From input is still empty.

 

 

Is there another approach that I can use to access, disable and populate the From input from the client.

 

 

Sean
Top achievements
Rank 1
Iron
Iron
 asked on 06 Nov 2023
1 answer
218 views

Hello, 

Is it possible for header from subreports do be shown on the main report? I have four different subreports with their own headers and my main report will not have a header (nor title), so I need in my main report to import header + detail section from subreport.

I think I saw that it could be done by reportBook, but that will not work for me. 
Or by some grouping criteria but I am not sure how is that functioning.

Thanks in advance! 

Best regards,
Tamara Karadjinovic

Momchil
Telerik team
 answered on 03 Nov 2023
0 answers
97 views

Hi Team,

I'm creating a web form application and using Telerik Report Designer 2023 R1. This work fine with string parameter. Then when I am using DateTime parameter on Preview at Configure sqlDataSource its show error "Cannot get preview".

Rahul
Top achievements
Rank 1
 asked on 02 Nov 2023
1 answer
92 views

hi Team,

I want to adjust the panel from one column to two column  in the report along with other components in the report. will it possible ?

Dimitar
Telerik team
 answered on 31 Oct 2023
2 answers
397 views
Can we limit number of columns per page in CrossTab? We have a data-source that contain more than 15 columns, and when we bind it with Cross tab then the remaining columns that  are not fit in the first page goes to the bottom of next page(image- Cross Tab Print at Bottom).Can we control this behavior and make sure remaining columns always print from the top and with correct margin?
Gurpreet
Top achievements
Rank 1
Iron
 answered on 30 Oct 2023
1 answer
161 views

How can I fix it? If you want to export excel that is not CSV. in angular.

Dimitar
Telerik team
 answered on 30 Oct 2023
1 answer
97 views

We use BlazorNative for Reporting.

In the sample with external parameters, there is the idea shown after submitting the Report:

  • Submit, make the Form invisible
  • start a delay (eg. 2000ms)
  • and make the Form visible again.

This works, but from the user perspective it is unclear what is  happening. Cause in the Viewer we have this message "0 pages so far..." and after a log processing time, the (big) report shows up, meanwhile the dialog is visible earlier. This leads to confusion of the user.

A better solution would be, setting the Form visible again after the Report is fully displayed.

Is there a event we can catch? Maybe in JavaScript with JsInterterop to gain this information?

 

Dimitar
Telerik team
 answered on 30 Oct 2023
1 answer
91 views

I am making a telerik report

However, I want to display a diagonal line in the textbox when a specific value comes in.

I want it to be displayed like this.


this.textBox10.Name = "textBox10"; this.textBox10.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(1.5D), Telerik.Reporting.Drawing.Unit.Cm(0.5D)); this.textBox10.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center; this.textBox10.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox10.StyleName = "Aspect.TableBody"; this.textBox10.Value = "= IIf(Fields.Name = 'Day', ' ', Fields.Name)";


I wrote the code like this, and first of all, if the data is Day, it is treated as blank, but when the data is Day, I want to display it like an image

Todor
Telerik team
 answered on 30 Oct 2023
1 answer
107 views

When i create report in standalone application with WebServiceDataSource as trdx file i can see section for Authentication with user and password

      <Authentication>
        <WebServiceBasicAuthentication Password="eYk0jBuZWWwHo1LHgtDHjA==" Username="user" />
      </Authentication>

what algorithm do you use to hash password? how it is save?

Momchil
Telerik team
 answered on 30 Oct 2023
1 answer
170 views

Hi.. 

I have this qrcode string
Fields.ProductMasterCode+"|"+ Fields.ProductName +" | "+ Fields.hashstring

after scan barcode, symbol | (pipe) missing. 

my qcode setting is

encoder - QRCode

ECI - CP437

ErrorCorrectionLevel - L

Mode - Alphanumeric

Todor
Telerik team
 answered on 27 Oct 2023
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?