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

Pivot grid-Change calculated PivotGridColumnField width programmatically.

4 Answers 124 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Sagar
Top achievements
Rank 1
Sagar asked on 03 Mar 2016, 07:57 AM

Hi,

I want to change the width of pivot grid column programmatically. Please check the ached file for more details.

Thanks,
Sagar Jaunjalkar

4 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 08 Mar 2016, 08:06 AM
Hi Sagar,

You can use the following property to achieve this requirement:
<telerik:PivotGridAggregateField ... CellStyle-Width="200px">

I hope this will prove helpful.

Regards,
Eyup
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
Sagar
Top achievements
Rank 1
answered on 09 Mar 2016, 06:21 AM

Hi Eyup,

I have already set CellStyle-Width property,but I want to set custom width for calculated column 

e.g- <telerik:PivotGridColumnField DataField="AssignedStatus">
         <CalculatedItems>              
              <telerik:PivotGridCalculatedItem GroupName="4_Assigned %"  /> 
              <telerik:PivotGridCalculatedItem GroupName="5_Missing %" />
          </CalculatedItems>
         </telerik:PivotGridColumnField>

so for column GroupName="4_Assigned %" , here I want to set custom width,Please help meto fix this.]

Thanks,
Sagar

0
Sagar
Top achievements
Rank 1
answered on 09 Mar 2016, 06:22 AM
<telerik:PivotGridAggregateField ... CellStyle-Width="200px"> not working,Please tell me for custom column.
0
Eyup
Telerik team
answered on 12 Mar 2016, 11:48 AM
Hello Sagar,

Please open a formal support ticket to send us the modified version of the sample provided in the end of the following post to demonstrate the issue:
http://www.telerik.com/blogs/aspnet-pivot-table-made-easy

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
PivotGrid
Asked by
Sagar
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Sagar
Top achievements
Rank 1
Share this question
or