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

Grid Does not expand to full width

4 Answers 181 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 11 Jan 2012, 03:47 PM
I have grids that are not expanding to fill the complete witdth.  I used the default skin and just made two changes to it in regards to color and call it "MySkin". This is not happening to all my girds, just some of them and I can't seem to find what is causing this.

The grid works fine and the columns line up underneith the headers on localhost, but the servers we deploy to are the problem. The page loads and looks like it will line up underneith the headers for a brief second then shrinks.

Telerik.Web.UI.dll:  2010.1.415.35

<telerik:RadGrid ID="RadGrid1" 
 AllowMultiRowSelection="False"  
 AllowSorting="True"
 AllowNaturalSort="True" 
 AllowPaging="True" 
 AutoGenerateColumns="False" 
 AlternatingItemStyle-HorizontalAlign="Left"
 GroupingEnabled="True" 
 HeaderStyle-HorizontalAlign="Center" 
 Height="475px" 
 ItemStyle-HorizontalAlign="Left"
 OnSortCommand="RadGrid1_SortCommand" 
 OnNeedDataSource="RadGrid1_NeedDataSource"
 OnItemDataBound="RadGrid1_ItemDataBound" 
 PageSize="15" 
 ShowFooter="True" 
 ShowHeader="True" 
 ShowGroupPanel="False" 
 ShowStatusBar="True" 
 SelectedItemStyle-ForeColor="#000000"                         
 EnableEmbeddedSkins="False" 
 Skin="MySkin"                           
 Width="100%"
 runat="server">

 

<MasterTableView AllowMultiColumnSorting="True" DataKeyNames="ID" TableLayout="Fixed" HeaderStyle-Wrap="false" Width="100%">

 

4 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 12 Jan 2012, 06:11 PM
Michael:

Have you tried calling repaint on the client-side? See the repaint documentation page for insights.

Hope this helps!
0
Mike
Top achievements
Rank 1
answered on 12 Jan 2012, 08:29 PM
jumpstart,

Thanks for the reponse, but that unfortunately didn't solve the problem.

Mike
0
Cradz
Top achievements
Rank 1
answered on 12 Jan 2012, 09:37 PM
Try changing TableLayout="Fixed" to TableLayout="Auto"
0
Mike
Top achievements
Rank 1
answered on 13 Jan 2012, 03:05 PM
The issue is the UseStaticHeaders="True"  and once I removed it the grid expanded all the way across but now the headers are not locked for scrolling.....

 

 


 There needs to be a fix for this!
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Mike
Top achievements
Rank 1
Cradz
Top achievements
Rank 1
Share this question
or