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

Text wrapping in pivot cells

2 Answers 96 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
Sjoerd
Top achievements
Rank 1
Sjoerd asked on 14 Jan 2013, 12:37 PM
I am using a somewhat  special OLAP cube with a calculation that  returns textual information for pivot cells. Your pivotgrid correctly shows the text, but the text does not wrap. Only so much text is shown as fits in the column's width. Is there a setting that I missed here?

Thanks
Sjoerd

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 16 Jan 2013, 01:19 PM
Hi Sjoerd,

Thank you for writing.

Using the
CellFormatting event you can set various properties of the PivotGridCellElement to modify its appearance. The following example will set the WrapText property to True:
void radPivotGrid1_CellFormatting(object sender, PivotCellEventArgs e)
{
    if (!e.CellElement.IsInGrandTotalColumn)
    {
        e.CellElement.WrapText = true;
    }
}

I hope this helps.

Kind regards,
Peter
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
0
Sjoerd
Top achievements
Rank 1
answered on 16 Jan 2013, 01:38 PM
Thanks Peter,

Works like a charm (using TextWrap instead of WrapText  :-)  )

Sjoerd
Tags
PivotGrid and PivotFieldList
Asked by
Sjoerd
Top achievements
Rank 1
Answers by
Peter
Telerik team
Sjoerd
Top achievements
Rank 1
Share this question
or