Grid Columns Resizing Issue

2 posts, 0 answers
  1. Keith
    Keith avatar
    15 posts
    Member since:
    Sep 2011

    Posted 08 Mar 2013 Link to this post

    I have a grid (version 2012.2.607.40) that has the resizing set as:
    <Resizing AllowColumnResize="true"  ClipCellContentOnResize="true"
    ResizeGridOnColumnResize="false" AllowRowResize="false" />

    Then in my code behind, I am creating columns.  The last two columns created have the Resizable property set to false:
    column.Resizable = false;

    When I hover over the headers of the first set of columns, the right side of the header shows the mouse cursor change.  The two final columns do not allow the resize cursor to appear.  This works as expected.  However, when I actually change the size of the columns set to true, by default, it resizes the rest of the columns to fill the space of the grid.  Even the columns marked false.  That is my problem.

    For example, say there are five Columns (A, B, C, D, and E).  D and E are set for Resizable = false.  By default each column is at 20% of the grids width.  If I resize column B down to 12%, I would hope to see A and C grow to 24% each while D and E stay at 20%.  However, I see all four resize to 22%.  Even the ones that should not resize.  Bummer!!

    What can I do differently for the correct calculations to occur in resizing?

    Best Wishes,

  2. Kostadin
    Kostadin avatar
    1733 posts

    Posted 13 Mar 2013 Link to this post

    Hi Keith,

    I am afraid this is the default behavior and could not be changed. The reason is that we change the size of the resizing column and the rest are resized by the browser.

    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