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

Hide PivotGrid Column at runtime.

3 Answers 169 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
ts
Top achievements
Rank 1
ts asked on 23 Sep 2014, 08:34 PM
Hi,

I am formatting a column ( Amount) based on another column ( Flag). I want to hide the column 'Flag' in grid PreRender. Can someone help me on how to achieve it?

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
ts
Top achievements
Rank 1
answered on 23 Sep 2014, 08:52 PM
The issue is I was able to hide the column 'Flag' but formatting also gone. So, where can I hide the column ?
0
Radoslav
Telerik team
answered on 26 Sep 2014, 07:34 AM
Hi,

Unfortunately the desired functionality is not supported into the RadPivotGrid control. If you hide some column the entire layout will be broken.

If you need further assistance, do not hesitate to contact us again.

Regards,
Radoslav
Telerik
 

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.

 
0
ts
Top achievements
Rank 1
answered on 26 Sep 2014, 08:46 PM
Sad to hear that. It will help, if addressed in future.

I made few changes to achieve what I wanted.

<telerik:PivotGridAggregateField DataField="C" DataFormatString="{0}">
<CellStyle Width="0px"/>


I gave column name as C here as next column name in Grid starts with C. Width of 0px make it looks like column and column to the right merged together. 

It may help, if someone wants to do something on hidden column. There is a compromise.
Tags
PivotGrid
Asked by
ts
Top achievements
Rank 1
Answers by
ts
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or