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

invoke Best fit column by programmatically

3 Answers 311 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
Saminathan
Top achievements
Rank 1
Saminathan asked on 15 Jul 2013, 05:56 PM

How to Invoke best fit column by programmatically,
I tried all below but no success

 

 

 


RP_Grid.PivotGridElement.BestFitHelper.BestFitColumn(New PivotGroupNode(RP_Gri)
RP_Grid.PivotGridElement.BestFitHelper..BestFitRowHeaders()
RP_Grid.PivotGridElement.BestFitHelper.BestFitRowHeaders(2)
RP_Grid.PivotGridElement.BestFitHelper.BestFitRowHeaders(1)
RP_Grid.PivotGridElement.BestFitHelper.BestFitColumns()

 

Please help me on this.Very urgent

 

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 18 Jul 2013, 02:13 PM
Hi Saminathan,

Thank you for writing.

The correct way to call this method is the following:
RP_Grid.PivotGridElement.BestFitHelper.BestFitColumns()

Please note that this call should be made on Form.Load or later event, where the pivot has a valid layout.

I hope this helps.
 

Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Saminathan
Top achievements
Rank 1
answered on 19 Jul 2013, 11:25 AM

Hi,

Thank you, Best fit works for Data cell.

 I want best fit to be invoked while expand and collapse row Header. I have attached the Screen shot Actual Size and Best Fit  Regards,

 Saminathan.B

0
Peter
Telerik team
answered on 24 Jul 2013, 12:40 PM
Hi Saminathan,

Thank you for writing back.

RadPivotGrid does not offer such functionality and you should adjust the size of these colums/rows manually via pivot's API methods:
radPivotGrid1.PivotGridElement.SetRowHeaderWidth(300, 0); //first row header will 300pixel
radPivotGrid1.PivotGridElement.ColumnWidth = 300;
//or RowHeight or ColumnWidth

I hope this helps because I am not able to provide another way to resize these columns.

Regards,
Peter
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PivotGrid and PivotFieldList
Asked by
Saminathan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Saminathan
Top achievements
Rank 1
Peter
Telerik team
Share this question
or