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

column invisible and resize column width

3 Answers 164 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bapuy
Top achievements
Rank 1
bapuy asked on 31 Jul 2015, 02:25 AM

Hi, 

 

i have a cross tab column, but it will invisible depend on the value, what i did is go to column properties and add binding :

Visible=IIF(Value>0, True, False)​

 

after column invisible, another columns did not fill up the space, how can i solve this, thanks.

 

Regards,

3 Answers, 1 is accepted

Sort by
0
bapuy
Top achievements
Rank 1
answered on 31 Jul 2015, 03:46 AM

i have applied below approach, but the width still remain the same.

 

Set the Bindings Width property to an User Function as shown in following code snippet:


public static Telerik.Reporting.Drawing.Unit RunTimeWidth(string value)
{
    if (value.Length > 5)
    {
        return Unit.Pixel(200);
    }
    else
    {
        return Unit.Pixel(5);
    }
}​

0
Nasko
Telerik team
answered on 03 Aug 2015, 12:28 PM
Hello ,

To hide a crosstab column and remove any blank space left, you need to use Filtering, instead of setting the visibility of the cells in that column.
More specifically you can add a filter to the crosstab column group to hide any columns which do not meet certain criteria.

Regards,
Nasko
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
bapuy
Top achievements
Rank 1
answered on 04 Aug 2015, 07:49 AM
Hi Nasko, thanks.
Tags
General Discussions
Asked by
bapuy
Top achievements
Rank 1
Answers by
bapuy
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or