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

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

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 14 Sep 2009, 02:24 PM
Hello,

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" /> 
            </ClientSettings> 
            <MasterTableView DataKeyNames="Type,CrmId,FieldId" TableLayout="Fixed" > 
            <Columns> ...  
            </Columns> 
            <EditFormSettings> 
              <EditColumn ButtonType="ImageButton" /> 
            </EditFormSettings> 
        </MasterTableView> 
        </telerik:RadGrid> 
  

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.

CS

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 17 Sep 2009, 10:50 AM
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.

Regards,
Martin
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.
Tags
Grid
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Martin
Telerik team
Share this question
or