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

Column Resize Issue

1 Answer 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 10 Oct 2008, 12:55 PM
I'm encountering an odd issue with the rad grid.

 

<rad:RadGrid ID="lstDiary" runat="server" OnItemDataBound="OnItemDataBound" PageSize="10" AllowPaging="true" > 
    <ClientSettings> 
        <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" ClipCellContentOnResize="true" /> 
    </ClientSettings> 
    <HeaderStyle Width="100px" /> 
    <MasterTableView Width="100%" TableLayout="Fixed" /> 
</rad:RadGrid> 


And when I resize a column, the contents spill over the right side of the grid border.  I was able to recreate this issue in the demo located on http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Client/Resizing/DefaultCS.aspx with the AllowColumnResize and ResizeGridOnColumnResize boxes checked.

What I'm trying to do is allow the width of the data area to change without having the actual current grid size change, but if I don't have the ResizeGridOnColumnResize set to true, it will only crunch up the rest of the data in the grid.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 14 Oct 2008, 09:00 AM
Hello Jim,

The observed visual glitch in our demo is caused by the fact that RadGrid is placed inside a container with a fixed width and is unable to expand. However, this can be worked around if you float the grid like this:

<telerik:RadGrid  style="float:left" />

Make sure you clear the float below the grid.

Greetings,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Jim
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or