I have a Kendo Grid. The columns in that grid are dynamically created.
Dynamic columns means the grid will have columns which is defined by a variable.
if variable is set to 5 then 5 columns. if the variable set to 20 then 20 columns gets created.
One of the column I had to sum total and display at the footer of that particular column.
I was able to achieve this functionality using hard coded columns, means I already defined columns in the design time.
But in case of dynamic columns the footerTemplate: "Total Sum: #=sum#" is not working. it says sum is undefined.
My whole challenge is with footerTemplate: "Total Sum: #=sum#" not working.
Can some one help me with an example?
Regards,
Venu
Related
I have a table, which is listing the name of benefits and it is only 1 column (just name of the benefit).
I'm wondering if there is any native function of BIRT Report Designer to produce rows not only vertically but also populate horizontally to 3-4 columns.
Something like below:
Benefits List
Benefit-1 Benefit-3 Benefit-5
Benefit-2 Benefit-4 Benefit-6
Thanks in advance for any advice.
Ok, I found a solution!
Under the following link there is a Eclipse Community Page Link recommendation about an additional computed column. Even though I don't have any computed column, the recommendation gave me an inspiration. Instead of creating an additional column, I used the rownum that is used generally to bind dataset parameter. For the table row, I created "visibility" condition that checks if the rownum + 1 is divided by 3. Depending on what is the result, it will be hidden or viewed:
Main Grid
It includes a grid with 2 rows and 3 columns. 1 row is merged to view the header. In each column of second row, the same table is placed with the same dataset.
Image Showing Main Structure
Select Table Row
Image Indicating Row Selection
Set the Visibility
Image Showing Details of Visibility Condition
The syntax basically means: "Do not show the row if the division result is not 1".
For the second column, you will need to compare with 2: (row.__rownum + 1) % 3 != 2 and the third column with 0: (row.__rownum + 1) % 3 != 0
Hope it'll be helpful for someone.
An more straightforward approach ist to use a List item instead of a Table item.
In the detail area of the List, create a Grid item of fixed width and height.
Put the content (e.g.) text into the grid's cells.
Important: Set the "display" property of the grid to "inline" instead of the default "block".
This way BIRT will put the grids from left to right until the line is full.
Then it will fill the next line (think of "display: inline" like adding words to a paragraph).
I was asked to create a report (in SSRS visual studio 2019).
The report has the following table number, numeric. How many people per table (generally 4-12), names, etc and the order in which the people will sit. From this I'm being asked to create is a graphic visualization of a circle (broken out evenly by number of guests per table) in the order of which they are seated.
For example here is my data set:
I need to create a seprate page with the lists below so it would like like this
Page 1 would have this:
Table 1 - 8 Guests
Page 2 would have this:
Table 2 - 4 Guests
we can also use embedded images -- the team has an image for each table size but we still have to obtain the locations of each spot (which means we'd have to know how to divide a circle)
You can do this easily.
Add a list or single column table and the set Dataset property to your dataset name.
Change the row group (probably called "details") by adding a group that groups by table.
Now insert a pie chart into the table cell. We should now get 1 pie chart per table.
Click the pie chart and add a value entry, set the value expression to =1/countrows(), this bit will just split the chart up evenly based on the number of guests.
Set the category group to the guest field.
Right-click the chart and "Show data labels", then right-click the label and set the value to this expression =Fields!id.Value & " - " & Fields!guest.Value. Set the data label position property to "outside".
Finally click the chart and expand the "custom attributes" section, set the PieStartAngle property to 270, this will make sure the first person is immediately after the 12 o'clock position.
Oh,. and set the chart title to something like `="Table " & Fields!table.Value"
The final output looks like this...
i use Kendo grid in ASP.NET MVC app.
I have grid with 6 columns which are sorted by date in default. User can click on header of one of the columns a override default sort and sort by column of his choosing.
What I want to achieve is "second tier sorting". When user sorts by name and there are 10 records with the same name, i want the 10 records to be sorted by date (descending). So far, I havenĀ“t found anyting useful.
Thanks
I am making a report for labels in Visual Studio. One of the parameters that the user enters is "label count," which produces the number of labels that the user chooses. The labels should be identical except for one textbox that reads "LABEL COUNT: X OF Y," where Y is the "label count" and X is the current label number, incrementing from 1 to Y. How can I implement this?
I've figured it out. This can be solved by inserting the contents of the label into a rectangle and then inserting that rectangle into a table. You will need to modify the code section of the table so that it creates a new page for each increment to the labelCount parameter. Then just insert a footer to the report to display the page count using the builtin page number variables.
I have a chart in Birt. How can I make multiple charts from the same series. For example. I only want to display 10 x values, and if the x values are greater than 10 I want to make x/10 graphs. I would need to do this since, I don't want to clutter the chart with too many values.
Thanks in Advance
Add a RUNNINGCOUNT Computed Column to your dataset.
Add a Table to your report (bound to your dataset.
Group your new table on the Ceiling of your RUNNINGCOUNT divided by 10.
Add your graph to the group footer of your table.