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

Hiding empty tables after filters

2 Answers 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 07 Aug 2018, 09:33 AM
I have tables which are all based on the same datasource and are filtered based on the record details section the table is in. How can I hide these tables if they are empty? The empty styles appear to work based on the whole data source and not the whether the actual table is empty. I potentially do not have any knowledge of the filter applied to the table by the report designer, so I can't recreate any filters programatically to check that way. Is there any functionality to simply check the number of rows in a table after the report has applied its filters?

2 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 10 Aug 2018, 06:13 AM
Hello Karl,

The Table item can be hidden by setting its NoDataMessage and NoDataStyle.Visible properties - How to: Set a No Data Message. To shrink the Panel item, please check the settings suggested in How Report Items are Arranged in a Section.

I hope this helps.

Regards,
Silviya
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
Karl
Top achievements
Rank 1
answered on 10 Aug 2018, 07:13 AM
Thank you for your help. I got it working in the end. The issue was that I had to set the message AND the style for the style to work. As I was making it invisible, the message wasn't ever going to be shown, so I wasn't setting that and so the style was ignored.
Tags
General Discussions
Asked by
Karl
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Karl
Top achievements
Rank 1
Share this question
or