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

grid column styling resizing

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mirang
Top achievements
Rank 1
mirang asked on 29 Nov 2011, 07:05 AM

Our requirement is to have a grid with columns with predefined sized, have a static header, column resize enabled, row resize disabled. I tried setting the properties to achieve this requirement, to some extent i was successful. One column has long text with spaces when the user resizes the column the content is taken to next line even if i set ClipCellContentOnResize to be true. This actually increases the row size which we do not want. What we want is to have a fixed row size and the columns should start clipping as soon as the resizer crosses the text. The text should not be taken to the next row.

Following is my grid configuration : 

<telerik:RadGrid ID="grid1" OnItemDataBound="OnItemDataBound" Skin="Transparent"
    runat="server" GridLines="Vertical">
    <MasterTableView>
    </MasterTableView>
    <HeaderStyle Font-Bold="False" Font-Size="Small" />
    <ClientSettings EnableAlternatingItems="false" EnableRowHoverStyle="true">        
        <ClientEvents OnRowClick="RowClick" OnRowDataBound="RowBound" OnColumnCreated="ColumnCreated" />
        <Selecting AllowRowSelect="True" />
        <Resizing AllowColumnResize="true" EnableRealTimeResize="false" ShowRowIndicatorColumn="false"
                    ResizeGridOnColumnResize="false" ClipCellContentOnResize="true" AllowResizeToFit="false" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
</telerik:RadGrid>

Please let me know if i am missing anything.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 29 Nov 2011, 11:52 AM
Hello Mirang,

Please refer to the forum thread below for more information on the subject:
http://www.telerik.com/community/forums/aspnet-ajax/grid/how-do-i-wrap-contents-of-long-text-in-a-radgrid-column.aspx

Best wishes,
Pavlina
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
Tags
Grid
Asked by
mirang
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or