-
Notifications
You must be signed in to change notification settings - Fork 29
Added new kb article rendering-layered-date-range-backgrounds-telerik-reporting-table-cells #1939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
github-actions
wants to merge
5
commits into
master
Choose a base branch
from
new-kb-rendering-layered-date-range-backgrounds-telerik-reporting-table-cells-de004d69abf0497bafc49ff4d8208288
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8a1bdae
Added new kb article rendering-layered-date-range-backgrounds-telerik…
9255829
Update rendering-layered-date-range-backgrounds-telerik-reporting-tab…
IvetNikolova f0e6496
Add files via upload
IvetNikolova 3280e23
Delete knowledge-base/images/rendering-layered-date-range-backgrounds…
IvetNikolova 45059fe
Add files via upload
IvetNikolova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions
64
...-base/rendering-layered-date-range-backgrounds-telerik-reporting-table-cells.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| --- | ||
| title: Rendering Layered Backgrounds in Telerik Reporting Crosstab Cells | ||
| description: Learn how to implement layered background rendering for date ranges inside crosstab cells. | ||
| type: how-to | ||
| page_title: How to Render Overlapping Date Ranges in Crosstab Cells in Telerik Reporting | ||
| meta_title: How to Render Overlapping Date Ranges in Crosstab Cells in Telerik Reporting | ||
| slug: rendering-layered-date-range-backgrounds-telerik-reporting-crosstab-cells | ||
| tags: reporting, crosstab, textbox, panel, expressions, bindings, date-range, overlapping-backgrounds | ||
| res_type: kb | ||
| ticketid: 1703676 | ||
| --- | ||
|
|
||
| ## Environment | ||
|
|
||
| <table> | ||
| <tbody> | ||
| <tr> | ||
| <td> Product </td> | ||
| <td> Reporting </td> | ||
| </tr> | ||
| <tr> | ||
| <td> Version </td> | ||
| <td> Current </td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| ## Description | ||
|
|
||
| I need to display overlapping date ranges inside a Telerik Reporting crosstab cell. Each row represents a unit, and each monthly cell should visually depict three date ranges with distinct background colors. The ranges overlap, and their rendering should follow a layered approach, with the outermost range appearing behind the inner ones. I need guidance on calculating pixel positions dynamically and rendering layered backgrounds within each cell. | ||
|
|
||
| ## Solution | ||
|
|
||
| To achieve layered background rendering for overlapping date ranges: | ||
|
|
||
| 1. Use a [Crosstab]({%slug crosstab_item_get_started%}) to represent the data. | ||
| 1. Place a [Panel]({%slug telerikreporting/designing-reports/report-structure/panel%}) nside the crosstab cells where you need overlapping elements. The panel will occupy the entire cell and act as a container for other elements, such as textboxes. This approach allows you to configure the textboxes as needed, since a single textbox alone would otherwise fill the entire cell. | ||
| 1. Add multiple [TextBox]({%slug telerikreporting/designing-reports/report-structure/textbox%}) items inside the panel to represent the date ranges. Each TextBox corresponds to one date range. | ||
| 1. Bind the position and size of each TextBox dynamically using [Bindings]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/using-expressions/bindings%}). This ensures the rectangles are rendered proportionally based on the date range. | ||
|
|
||
| ### Example | ||
|
|
||
| Below is an example dataset and binding configuration: | ||
|
|
||
| **Sample Data:** | ||
|
|
||
| ``` | ||
| text,date,month,sizex,position | ||
| 1,01/01/2025,1,0.5in,1.5in | ||
| 1,01/01/2025,2,0.3in,0in | ||
| ``` | ||
| Ensure that your data includes the X and Y position and size values. These values determine the length of the colored textbox. Below are the two bindings applied to the textbox: | ||
|
|
||
|  | ||
|
|
||
| ## See Also | ||
|
|
||
| * [Telerik Reporting Crosstab Overview]({%slug crosstab_item_get_started%}) | ||
| * [Telerik Reporting Panel Overview]({%slug telerikreporting/designing-reports/report-structure/panel%}) | ||
| * [Telerik Reporting TextBox Overview]({%slug telerikreporting/designing-reports/report-structure/textbox%}) | ||
| * [Using Expressions in Telerik Reporting]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/using-expressions/overview%}) | ||
| * [How to Display Reports with Alternating Style Rows]({%slug how-to-display-alternating-style-rows%}) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.