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

[Solved] Width 100%

1 Answer 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 04 Jun 2009, 03:40 PM
Hi:
I have a grid with the Log4Net table displayed.  The Message and Exception columns are over 2000 characters long.  Upon the page initially displaying it is really ugly (message column not wrapping, text beyond the edge of grid).  Click the Next Page and then it is better, but still ugly.
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"  
    AutoGenerateColumns="False" DataSourceID="logsDataSource" GridLines="None"  
    Skin="Office2007" Width="100%"
    <HeaderContextMenu Skin="Office2007"
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </HeaderContextMenu> 
    <MasterTableView DataSourceID="logsDataSource" Width="100%" > 
        <Columns> 
            <telerik:GridBoundColumn DataField="Id" HeaderText="Id" UniqueName="idColumn" /> 
            <telerik:GridDateTimeColumn DataField="Date" HeaderText="Date" UniqueName="dateColumn" /> 
            <telerik:GridBoundColumn DataField="Thread" HeaderText="Thread" UniqueName="threadColumn" /> 
            <telerik:GridBoundColumn DataField="Level" HeaderText="Level" UniqueName="levelColumn" /> 
            <telerik:GridBoundColumn DataField="Logger" HeaderText="Logger" UniqueName="loggerColumn" /> 
            <telerik:GridBoundColumn DataField="Message" HeaderText="Message" UniqueName="messageColumn" /> 
            <telerik:GridBoundColumn DataField="Exception" HeaderText="Exception" UniqueName="exceptionColumn" /> 
        </Columns> 
        <PagerStyle Position="TopAndBottom" /> 
    </MasterTableView> 
    <FilterMenu Skin="Office2007"
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </FilterMenu> 
</telerik:RadGrid> 
 

How can I get this to fit within a page and my boss not say, 'unacceptable'?
http://logging.apache.org/log4net/release/config-examples.html


Use above for schema...
Phil

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 09 Jun 2009, 03:25 PM
Hello Phil,

You may consider enabling the column resizing feature of the grid along with cell content clipping as demonstrated on this online demo of the product:

http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx

or set TableLayout=Fixed for its MasterTableView and specified fixed widths in pixels for the columns(through the HeaderStyle ->Width property of the columns) to avoid the unwanted effect.

If this does not help, I will appreciate if you post a screenshot or provide a live url where the discrepancies in the grid apperance can be seen. Thus I will do my best to advice you further.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Phil
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or