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

hide table column and resize table width

4 Answers 562 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Veteran
Andrea asked on 05 Apr 2016, 02:03 PM

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

 

4 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 06 Apr 2016, 04:32 PM
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
0
Andrea
Top achievements
Rank 1
Veteran
answered on 06 Apr 2016, 09:17 PM

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

0
Stef
Telerik team
answered on 07 Apr 2016, 05:09 PM
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
0
Accepted
Andrea
Top achievements
Rank 1
Veteran
answered on 08 Apr 2016, 03:32 PM

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

Tags
General Discussions
Asked by
Andrea
Top achievements
Rank 1
Veteran
Answers by
Stef
Telerik team
Andrea
Top achievements
Rank 1
Veteran
Share this question
or