RowHeader cell width

6 posts, 0 answers
  1. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 12 Apr 2013 Link to this post

    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
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 Apr 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 19 Apr 2013 Link to this post

    Thanks for your reply, but, unfortunately RowHeaderCellStyle  does not reflect any changes.
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 24 Apr 2013 Link to this post

    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.
  6. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 25 Apr 2013 Link to this post

    Thank again, but I need to set different width values to each column.
  7. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 29 Apr 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017