hide table column and resize table width

5 posts, 1 answers
  1. Andrea
    Andrea avatar
    9 posts
    Member since:
    Jan 2014

    Posted 05 Apr Link to this post

    Hi,
    I need to hide some columns in a table.
    I tried some programmatically approaches saw seen in the forum but none worked for me.

    At the end i try to filter column groups as suggested by admin, this work, columns are hidden but the table don't shrink its width and
    blank pages appear in the report.

    There is a way to hide columns (using columns Group filter) and resize table to avoid blank pages

    Thank you very much

    Andrea

     

  2. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 06 Apr Link to this post

    Hi Andrea,

    Please check my post in hide a table column. Filters on column groups is the recommended approach, where the Table item will shrink when a column and its elements are filtered out (hidden).

    If the Table item is not shrinking, please check for Dock and Anchor settings and reset them.

    Regards,
    Stef
    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. DevCraft banner
  4. Andrea
    Andrea avatar
    9 posts
    Member since:
    Jan 2014

    Posted 06 Apr in reply to Stef Link to this post

    Hi Stef,
    thank you for answer.

    Dock and Anchor settings are both set to none. Columns are hidden by Group filters but table don't resize its width and this cause blank pages.
    Can i link or post in some way my sample project please?

    thank you,

    Andrea

  5. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 07 Apr Link to this post

    Hi Andrea,

    The attached report can be used to compare your settings for showing/hiding columns. The project uses Telerik Reporting v10.0.16.325, that can be changed by running the Upgrade Wizard.  Note that if the table item is docked in its container, the item will remain the same in width.

    If you need further help, please open a support ticket and include a runnable demo project that illustrates the problem.

    Regards,
    Stef
    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
  6. Answer
    Andrea
    Andrea avatar
    9 posts
    Member since:
    Jan 2014

    Posted 08 Apr in reply to Stef Link to this post

    Hi Stef,

    I've  found the problem in my project. The problem was the report widht in designer, adding columns to table expand report widht automtically beyond the A4 widht. After re-setting the A4 widht on the report (table goes out form the report body on the right), all works fine and there is no blank pages problem anymore.

    Thank you very much

    Best regards

Back to Top
DevCraft banner