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

Dynamic sizing of CrossTab columns

1 Answer 433 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 24 Nov 2014, 10:08 PM
The report designer does not allow this capability.

So, before the report XML is sent to the report viewer, we have a process that modifies the XML to adjust the width based on the internal data info at our disposal.

The issue is that the new WIDTH information seems like its being ignored, and when presented in the report viewer, the crosstab columns are being set to a width so the text heading with the maximum width does not wrap.

Here are two files:

        pre.xml contains the xml that is saved by the report designer (trdx)
        pst.xml contains the xml after our process makes its width adjustments.

In the report designer the three columns are showing as 0.6in, 0.8in, and 1.0in

You can compare the files to see the three lines where our process has modified the width.



1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 27 Nov 2014, 12:27 PM
Hello John,

There are multiple widths that you must take into account when modifying the report definition manually. For example, the Crosstab width should be equal to the combined width of its columns, which is not the case in the provided screenshot.
Our suggestion is to modify the column widths via the report designer and then review the automatically generated TRDX file. In this case you will be able to see which properties you need to change manually in order to achieve the same effect.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or