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

RowHeader cell width

5 Answers 74 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Barbaros Saglamtimur
Top achievements
Rank 1
Barbaros Saglamtimur asked on 12 Apr 2013, 09:42 AM
Hi,
I would like to set RowHeader cells' width individually. I use below code;
<telerik:PivotGridRowField DataField="INVENTSITE" Caption="Üretim Mer.">
                            <CellStyle Width="105" />
</telerik:PivotGridRowField>
But it seems this does not effect, somehow rendered output overwrites width value. I can see the cell property like style="width:105px;" with FireBug but computed values are different, actually wider. I need to fix this problem, because I have a cell that needs to be wider so that text inside this cell can be read. Please refer to attached image to see the problem. For example I set cell (line #1) width to 100px and cell (line #2) to 200px (so the text can be read) but no way. All my data and layout is as seen. How can I fix this problem?

TIA

5 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 17 Apr 2013, 02:09 PM
Hi Barbaros,

Please try to set :
<RowHeaderCellStyle Width="200px" />
 instead of CellStyle and verify if this makes any difference.

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Barbaros Saglamtimur
Top achievements
Rank 1
answered on 19 Apr 2013, 01:22 PM
Thanks for your reply, but, unfortunately RowHeaderCellStyle  does not reflect any changes.
0
Maria Ilieva
Telerik team
answered on 24 Apr 2013, 02:15 PM
Hello Barbaros,

Setting RowHeaderCell width works properly on my end. See the movie below form the RadPivotGrid demo
http://screencast.com/t/TsGBFuQa

Let me know if this is what you need to achieve.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Barbaros Saglamtimur
Top achievements
Rank 1
answered on 25 Apr 2013, 11:42 AM
Thank again, but I need to set different width values to each column.
0
Maria Ilieva
Telerik team
answered on 29 Apr 2013, 08:26 AM
Hi,

In this case you should apply the needed width to the "ColumnHeaderCellStyle". See the help topic below:

http://www.telerik.com/help/aspnet-ajax/pivotgrid-styling-row-column-data-table-cells.html

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
PivotGrid
Asked by
Barbaros Saglamtimur
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Barbaros Saglamtimur
Top achievements
Rank 1
Share this question
or