Hiding empty tables after filters

3 posts, 0 answers
  1. Karl
    Karl avatar
    16 posts
    Member since:
    Nov 2013

    Posted 07 Aug 2018 Link to this post

    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. Silviya
    Silviya avatar
    419 posts

    Posted 10 Aug 2018 Link to this post

    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.

    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
  3. Karl
    Karl avatar
    16 posts
    Member since:
    Nov 2013

    Posted 10 Aug 2018 in reply to Silviya Link to this post

    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.
Back to Top