Hide PivotGrid Column at runtime.

4 posts, 0 answers
  1. ts
    ts avatar
    13 posts
    Member since:
    Aug 2014

    Posted 23 Sep 2014 Link to this post

    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.
  2. ts
    ts avatar
    13 posts
    Member since:
    Aug 2014

    Posted 23 Sep 2014 in reply to ts Link to this post

    The issue is I was able to hide the column 'Flag' but formatting also gone. So, where can I hide the column ?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 26 Sep 2014 Link to this post

    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.

     
  5. ts
    ts avatar
    13 posts
    Member since:
    Aug 2014

    Posted 26 Sep 2014 in reply to Radoslav Link to this post

    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.
Back to Top