Dynamic sizing of CrossTab columns

2 posts, 0 answers
  1. John
    John avatar
    41 posts
    Member since:
    Jun 2013

    Posted 24 Nov 2014 Link to this post

    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.

  2. Nasko
    Nasko avatar
    1055 posts

    Posted 27 Nov 2014 Link to this post

    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.


    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.

Back to Top