This is a migrated thread and some comments may be shown as answers.

Is there a way for qr codes not to be displayed if the value of the field is null?

2 Answers 448 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 17 Oct 2019, 03:40 PM
Hello. I'm creating a report that contains qr codes in columns. The qr codes are displaying well, but if one of them is null, also is displayed. I'm trying to use conditional formatting, but if I uncheck "visible" in layout style, nothing is displayed in the column (background, borders...). I use another conditional formatting for alternating rows.

Thank you.

2 Answers, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 18 Oct 2019, 03:06 PM

Hello Roberto,

I noticed that you have opened a support ticket for the same issue. I will summarize our reply here for the benefit of our community.

The observed behavior is expected, as the Styling is applied to report items (e.g. TextBoxes, Barcodes), and table cells are something like placeholders for report items. When you hide the Barcode all the formatting will disappear and cell will be displayed as blank.

To avoid this behavior you may use a Panel in the cell and place the Barcode item inside the Panel. You may apply the (conditional) formatting that should be visible even when the Barcode is hidden to the Panel and set conditionally the Visible property only of the Barcode.

Check the attached report that demonstrates the approach. The sample will work with version 13.2.19.1004 and above as it uses JsonDataSource with Null values. However, the approach is generally applicable for older versions of our Reporting tool.

Regards,
Todor
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Roberto
Top achievements
Rank 1
answered on 18 Oct 2019, 04:02 PM

Hello Todor.

Thanks for answering. I'm sorry I asked the question in two different places, I didn't know how to do it. I will try the panel solution, although I think the report should not show anything if the linked field has no value or the value is null. It only happens in QR and PDF417 barcodes.

Best regards.

Tags
General Discussions
Asked by
Roberto
Top achievements
Rank 1
Answers by
Todor
Telerik team
Roberto
Top achievements
Rank 1
Share this question
or