Column resizing doesn't work when some columns are marked as display=false

2 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 14 Sep 2009 Link to this post


    This is very annoying because I need to have the keys for each row and these values must not be presented to users (Guid, int), and I remark that with the parameters
           <telerik:RadGrid ID="Grid1" runat="server" AllowPaging="True" 
                AllowSorting="True" ShowStatusBar="true"  PageSize="20" GridLines="None" AutoGenerateColumns='false'>  
                <PagerStyle Mode="NextPrevAndNumeric" /> 
                <ClientSettings > 
                        <Resizing AllowColumnResize="True"  ResizeGridOnColumnResize="true" ClipCellContentOnResize="true"/>  
                        <Scrolling AllowScroll="True" ScrollHeight='500px' UseStaticHeaders="True" SaveScrollPosition="True" /> 
                    <Selecting AllowRowSelect="True" /> 
                <MasterTableView DataKeyNames="Type,CrmId,FieldId" TableLayout="Fixed" > 
                <Columns> ...  
                  <EditColumn ButtonType="ImageButton" /> 

    If I have the CrmId column visible but not diplayed, I am unable to resize columns without having everything moving around, totally crazy ! Even worse, the columns won't get their initial size fixed by header normally.
    When I turn display on, everything works normally: colummn are display with correct header size and I am able to resize one column without having the others changed.

    very easy to reproduce under FireFox.

    Thanks for help.

  2. Martin
    Martin avatar
    823 posts

    Posted 17 Sep 2009 Link to this post

    Hello Christian,

    I tried to reproduce the issue under both IE8 and FF 3.5.3 but without success. I am attaching a sample project that mimics your scenario and that runs as expected on my side. Please give it a try and let us know if you still get the issue. In such case you can send us a simplified runnable project that demonstrates the erroneous behavior or a snapshot of the result you get when browsing the project.

    I hope this helps.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top