Telerik Forums
Reporting Forum
2 answers
152 views

I found the custom action to be kind of promising to add functionality to the report. But to make this really useful, we need the complete picture:

First, I added a textbox to the report and added a Custom Action to it.

Then I subscribed to the Enter, Leave and Executing events and added some code to handle them.

 

What I want to achieve:

a) Highlight the "button" simulated with the textbox when the user enters / hovers over it

b) Un-highlight when the user leaves

c) Execute something when the user clicks (this seems to be simple enough).

 

The highlighting doesn't really work. Let me show you my event handler:

 

        public void CustomAction_Enter(object sender, InteractiveActionEventArgs args)
        {
            var b = (Border)args.Element;

            b.BorderBrush = Brushes.DarkGray;
            b.Background = Brushes.Purple;
        }

 

This does something - it colors a part of the textbox purple. But it doesn't fill the entire textbox and also it overlays the text. When I investigate the Border, I see that is has no children. This is not properly working at all and I don't understand the purpose of the Border when it seems to have nothing to do with what we see in the report.

The expected behaviour is a border that matches / is the border of the text and a child in it that is the text as a textblock control.

 

How is this meant to be used?

 

Thanks,

Sascha

Ivan Hristov
Telerik team
 answered on 28 Dec 2018
4 answers
392 views

Hi

I am trying to add my first parameterised report to an ASP.net WebForms application.  I cannot figure out how to pass the parameter.  Having searched, a lot of posts are old, lead to blank pages, examples that use the old report viewer not the HTML 5 one and I cannot convert it etc.

I have created a .trdp file and added it to the project.  It takes a parameter and the report works in preview, if I Hard code the parameter.

My front end code to add the report viewer is:

01.<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ContractDisplay2.aspx.vb" Inherits="Intranet3.ContractDisplay2" %>
02. 
03.<%@ Register Assembly="Telerik.ReportViewer.Html5.WebForms, Version=12.2.18.1129, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.Html5.WebForms" TagPrefix="telerik" %>
04. 
05.<!DOCTYPE html>
06. 
08.<head runat="server">
09.    <title></title>
10.</head>
11.<body>
12.    <form id="form1" runat="server">
13.        <div>
14.            <p>report:</p>
15.        <telerik:ReportViewer ID="ReportViewer1" runat="server"  style="border:1px solid #ccc;"
16.            width="99%" height="99%"/>
17.        </div>
18.    </form>
19.</body>
20.</html>

 

and in my code behind I have this:

1.Dim reportSource As New Telerik.ReportViewer.Html5.WebForms.ReportSource()
2.            reportSource.IdentifierType = Telerik.ReportViewer.Html5.WebForms.IdentifierType.UriReportSource
3.            reportSource.Identifier = "ConsignmentProductReport.trdp"
4.            reportSource.Parameters.Add("AccountNo", "ABC123")
5.            ReportViewer1.ReportSource = reportSource

 

The problem is that when I run it, the report is not rendered.

Please can someone advise how to do this using WebForms / HTML5 viewer and .trdp files?

Thanks

Silviya
Telerik team
 answered on 21 Dec 2018
5 answers
787 views

Hi,

How do I merge at run time , the columns of a row ?

See image attached table.

 

Greetings,

Carlos Carvalho

Todor
Telerik team
 answered on 20 Dec 2018
1 answer
705 views

I faced issue in group footer while preparing my document

In my group footer there is a table. For particular ID the table data should be visible in next page  if no  data is available the report should contain only one page (only detail section data should be visible)but  for me the report has two pages.

Second page is coming with group header section data .

  How can i come over from it any suggestions

 

Silviya
Telerik team
 answered on 19 Dec 2018
8 answers
462 views
I have an InstanceReportSource report to use in my MVC application, so I am using the IReportResolver and CustomReportResolver to set up the report for my reportviewer.  In order to set up the report I need access to Session for an authentication object.  However, Session is not available in the CustomReportResolver method.

Is there anyway to get to Session from there, or can it be modified to do so?

Thanks.
Dan
Todor
Telerik team
 answered on 19 Dec 2018
1 answer
231 views

Hi

i made a web telerik report. I joined a screenshot to show exactly what is my problem. As you can see, the report is fine but there is a line at the left ( look at the red arrow ), it assume that it is the viewer template border. I would like it to be left aligned with the beginning of the toolbox.

I tried to look in debug to see what is the problem with the html and honestly i cannot figure. however, the pointer i debug seems to target the line below but i'm not sure :

<div class="trv-pages-area k-widget" tabindex="1000" data-role="telerik_ReportViewer_PagesArea" role="main" aria-label="Report contents area">

 

anyway, this is the code section in the template :

 

<div class="trv-content" role="form">
<div class="trv-document-map k-widget hidden" data-role="telerik_ReportViewer_DocumentMapArea" >
<div tabindex="200" class="trv-document-map-overlay" role="navigation" aria-label="Document map area"></div>
</div>
<!--<div class="trv-parameters-area k-widget hidden" data-role="telerik_ReportViewer_ParametersArea" >
<div tabindex="300" class='trv-parameters-area-content' role="complementary"></div>
<div class='trv-parameters-area-footer'>
<button tabindex="399" aria-label="Afficher le rapport the report" class='k-button trv-parameters-area-preview-button'>Afficher</button>
</div>
<div class='trv-error-pane k-tooltip-validation k-widget'>
<div class='trv-error-message'></div>
</div>
<div class="trv-parameters-area-overlay"></div>
</div>-->
<div class="trv-pages-area k-widget" tabindex="1000" data-role="telerik_ReportViewer_PagesArea" role="main" aria-label="Report contents area">
<div class='trv-page-container'>
<div class='trv-page-wrapper active'></div>
</div>
<div class='trv-error-pane'>
<div class="centered k-tooltip-validation k-widget">
<div class='trv-error-message'></div>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>
</div>

Todor
Telerik team
 answered on 19 Dec 2018
2 answers
115 views
Hi,
I am trying to upgrade my KendoReportViewer JS file. I was using 'telerikReportViewer-10.0.16.min.js' before. Now I have upgraded it to 'telerikReportViewer-12.2.18.min.js'. After upgrading, the parameters section of reports is not showing.
I am using KendoReportDesigner for building reports. CAn anyone guide me where I am wrong.

Thanks
Arslan ur Rehman
Top achievements
Rank 1
 answered on 19 Dec 2018
1 answer
666 views

Hi,

Sometimes we are getting an error saying "Client ID with <client id> not found". Is there any way to (programmatically)create a new client id and use it when the client is not found or expired?

Thanks,

Majar

Todor
Telerik team
 answered on 18 Dec 2018
4 answers
160 views

Help, I would like to number my Rank row in Cross Tab:

Rank |  Student Name | AverageScore | Rownumber()
1.          John Denis      |  99                   | 2 
2.          Mark Evans    |  88                    | 3
3.          Clare              |   78                    | 1 

 

I Sorted by AverageScore Column which is calculated by Total/Count GroupBy Student Name. I want to show user the ranking. But the =RowNumber() returns the default alphabet sequence number from database. Which function I could use to do the RANK column in CrossTab in Telerik reporting?

Thanks

Gordon
Top achievements
Rank 1
 answered on 18 Dec 2018
1 answer
758 views
Hi,

I referred to the following discussion on supporting images in HtmlTextBox. 

Do you have any plans to support this feature in the future? And do you have any recommended way to achieve this other than method provided in the discussion?

Thank you,
Rajika.
Todor
Telerik team
 answered on 18 Dec 2018
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?