Telerik Forums
Reporting Forum
3 answers
935 views
Hi,

I need to build a report which has its DataSource a List<Object1>
Object1 has a List<Object2>
Object2 has a List<Object3>

All objects have a property Name(and some other details)

Report should show like:

Object1.Name
* Object2.Name
** Object3.Name
** Object3.Name
* Object2.Name
** Object3.Name
** Object3.Name

Object1.Name
* Object2.Name
... and so on.

I`ve created a list1 which has the datasource - List<Object1>, but after this I got stuck, I can't find a way to set the datasource for the next list which would need to show Object2 list, and after that, Object3 list. How can I achieve this without building the controls from code?

I must mention i`m new in working with telerik, in case this was not found out yet.

Thanks in advance.
Todor
Telerik team
 answered on 30 Oct 2018
3 answers
188 views
Hello,

I have a problem with the group footer section. My objective is to stick it to the last printed row of a table in the detail section.

I have it configured to PrintAtBottom = false

On the page i have only 2 groups and in the detail i have a table. 

When the table row is too height and it doen't fit in that page, the group footer section is printed always on bottom of the page, and i do not want that, i want it to be printed right below the last row of that table in that page.

I already play it around with the keeptogether and it didn't work.

Can somebody help me?
Thanks,
Nuno
Silviya
Telerik team
 answered on 29 Oct 2018
14 answers
3.0K+ views
I'm trying to evaluate some fields inside a table in my report, however I see that the table has its own datasource property, I want to set the datasource property to be the same as the report's datasource, how can I do so? thanks!
Silviya
Telerik team
 answered on 29 Oct 2018
1 answer
81 views
We've upgraded to 12.2.18.912 and now, in the HTML viewer, when an option (ie PDF) is selected for Download, nothing downloads and no error is thrown.  Are there upgrade steps that we have missed?  Please advise.
Veronika
Telerik team
 answered on 26 Oct 2018
8 answers
547 views
Hello,

In the documentation, I've read the part titled "Creating Master-Detail Reports Using SubReports". This is exactly what I need to do, except that the documentation speaks only of working with a SQL database as datasource. In my case, I'm using a list of objects as datasource.

Here is my requirement
I have a List<House> with a variable number of house objects.
Each House object has a Floors property which is a List<Floor> with a variable number of floor objects.
In turn, each Floor has a property Rooms which is a List<Room> with a variable number of room objects.

I need to build a 3 level master-detail report with the following structure :
House 1
some data about House 1
             (repeat for each Floor of house 1)
              some data about FloorX
                     (repeat for each Room of FloorX)
                      some data about RoomY
House 2
some data about House 2
             (repeat for each Floor of house 2)
              some data about FloorX
                     (repeat for each Room of FloorX)
                      some data about RoomY
  ... and so on for each House.

Can you point me to some documentation or sample about how to do that, in the best way possible ?
This is the last element we need to evaluate before validating that we will acquire the product.
Andrea
Top achievements
Rank 1
 answered on 26 Oct 2018
1 answer
689 views

We let the user choose between single spacing, 1.5x spacing, and double spacing of the report rows.  For the detail rows this is pretty easily accomplished by setting the Height of the detail section to (font size) * (line spacing) * (1.3).  Line spacing is 1, 1.5, or 2. This makes all the detail rows space out correctly. But, we have reports with multiple total rows and these total rows need to be following the same spacing; we have not been able to get this to work. 

For example I have two total rows in the footer section:

Sum       <col 1 sum>    <col 2 sum>

Average <col 1 ave>     <col 2 ave>

When I set the location of the text boxes in the second row to y=0.01 points to y=1.99 points then this second row shows up as "single spaced"; in other words the top row text boxes push the second row down with no additional space added between then.  Like "Sum" would be at (0, 0) and "Average" would be at (0, 1 point).

But as soon as I set the location of the second row text boxes to y=2 points or more the second row get pushed WAY down to basically double spaced (15 pixels between the rendered rows to 29 pixels between the rendered rows). Font size here was 8.25 points. I don't understand what is going on here. My plan was to sec the Y location of the second row to (font size) * (line spacing) * (1.3) which logically seems like it should work; but given this weird behavior I get double spaced all the time (for 1, 1.5 or 2). 

Do I need to add a "spacer row" between these two rows to accomplish this or something similar?  Is the Y component of the text box location interpreted in some weird way?

 

Silviya
Telerik team
 answered on 26 Oct 2018
3 answers
530 views
I have a asp.net application which uses telerik reports to display data from a database. In one of the fields there have been curly braces {} used. This works fine in the application, however when the report attempts to use this data in a textbox I get "An error has occurred while processing Report 'TestReport': Error evaluating embedded expressions: Unexpected token inside an expression at index 12" does any one have idea on how to fix this short of replacing the curly braces when displaying in the report with regular brackets. I tried using an HTMLTextbox to see if it would handle it any better and it did not. Any help with this would be greatly appreciated.

Silviya
Telerik team
 answered on 26 Oct 2018
1 answer
246 views

I have a table in my report that contains 2 rows. I have now merged a couple of cells to create a larger column. I am trying to now conditional format the row in that if a record is null, hide that row.

It is not working as I suspect that it is seeing that the cells to the left and right have been merged. So I end up with the image attached.

Is there a way to accomplish this?

Brian
Top achievements
Rank 1
 answered on 25 Oct 2018
1 answer
90 views

Have a class deriving from Telerik.Reporting.Report.  The report has parameters which have values being passed in.  They are being passed in because I can print out their values on the report.

But I would like to intercept their values at some point in the code to do something with them, but when referencing them they are all null.

Tried referencing them in the constructor of the report, as this.ReportParameters.

Tried adding event handlers to various events of the report object, as well as events of datasource objects within the report.  What event handler needs to be handled where the ReportParameters will be available when they are passed in from outside?

Passing in parameter values from HTML5 viewer using reportSource property as object value set to parameters.

Ivan Hristov
Telerik team
 answered on 25 Oct 2018
10 answers
1.1K+ views

I have a table with several columns. Some of the rows have repeating data in their columns. Using Row Groups, I can group the data like so:

Patter     

Ivan Hristov
Telerik team
 answered on 25 Oct 2018
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?