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

RadGrid data appeared differently

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vitaly
Top achievements
Rank 1
Vitaly asked on 30 Aug 2011, 09:37 PM

Hi guys,
I have a following Radgrid:

 

 

<telerik:RadGrid ID="PrnPSRejectedGrid" runat="server" GridLines="None" OnExcelMLExportRowCreated="PrnPSRejectedGrid_ExcelMLExportRowCreated" OnExcelMLExportStylesCreated="PrnPSRejectedGrid_ExcelMLExportStylesCreated" OnItemCreated="PrnPSRejectedGrid_ItemCreated" OnNeedDataSource="PrnPSRejectedGrid_NeedDataSource" OnPdfExporting="PrnPSRejectedGrid_PdfExporting" OnSortCommand="PrnPSRejectedGrid_SortCommand">

 

 

 

 

 

 

<ExportSettings FileName="PrnPSRejectReport" OpenInNewWindow="true" IgnorePaging="true" ExportOnlyData="true">

 

 

 

 

 

 

<Excel Format="ExcelML" FileExtension="xls"/>

 

 

 

 

 

 

<Pdf FontType="Subset" PaperSize="letter" />

 

 

 

 

 

 

</ExportSettings>

 

 

 

 

 

 

<MasterTableView AutoGenerateColumns="false" >

 

 

 

 

 

 

 

<RowIndicatorColumn>

 

 

 

 

 

 

<HeaderStyle Width="10px" />

 

 

 

 

 

 

</RowIndicatorColumn>

 

 

 

 

 

 

<ExpandCollapseColumn>

 

 

 

 

 

 

<HeaderStyle Width="10px" />

 

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

<telerik:GridBoundColumn HeaderText="TrkNo" DataField="TRKNO" UniqueName="TRKNO" ReadOnly="True" SortExpression="TRKNO" HeaderButtonType="TextButton">

 

 

 

 

 

 

<HeaderStyle Width="1px" />

 

 

 

 

 

 

<ItemStyle Width="1px" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn HeaderText="Rejected Reason Description" DataField="RRSNDESC" UniqueName="RRSNDESC" ReadOnly="True" SortExpression="RRSNDESC" HeaderButtonType="TextButton" >

 

 

 

 

 

 

<HeaderStyle Width="200px" />

 

 

 

 

 

 

<ItemStyle Width="200px" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 


Column Rejected Reason Description could have a data up to 250 characters.When I run on my local machine settings is fine.But
when I am running on different machine instead of putting description on entire line its just use have of the line(for example):

 The principal did not meet the
 criteria in the posting and
 other eligible  titles
 have not declined the 
 request.

The grid should have a format like that:
The principal did not meet the criteria in the posting and other eligible titles have not declined the request.
It should use entire column for texting.

Thanks so much for your help.
 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Sep 2011, 07:43 AM
Hello Vitaly,

Try setting the  TableLayout property of GridTableView as "Auto" which in turn sets the column width to the widest unbreakable content in the column cells.

Thanks,
Shinu.
Tags
Grid
Asked by
Vitaly
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or