
<
rada:GridBoundColumn DataField="AccountNo" Visible="true" HeaderText="AccountNo" HeaderStyle-Width=500 ItemStyle-Width=500 FooterStyle-Width=500
HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" SortExpression="UserAccountAddress.AccountNo">
</rada:GridBoundColumn>
Then, every other column gets cut/shrunk losing the text. What I feel that it should do, is, if it can't fit everything in based on my window size, is add a horrizontal scroll bar to the grid (using static headers as well in case that makes a difference). (see uploaded image). Is there a way to tell the other columns to expand as needed?
<rada:RadGrid ID="rg" runat="server" AllowSorting="True" AllowMultiRowSelection="true" AutoGenerateColumns="false"
Width="96%" OnNeedDataSource="rg_NeedDataSource" Height="230">
<MasterTableView Width="100%" Summary="RadGrid table" DataMember="Documents" CommandItemDisplay="Top"
CommandItemSettings-ShowExportToExcelButton="true" CommandItemSettings-ShowExportToCsvButton="false" ShowHeadersWhenNoRecords="true"
AllowNaturalSort="false">
<Columns>
</
MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
<Selecting AllowRowSelect="True" UseClientSelectColumnOnly="true" EnableDragToSelectRows="false" />
</ClientSettings>
</rada:RadGrid>
7 Answers, 1 is accepted
Please have in mind that it is not recommended to use ItemStyle-Width to set column widths. Only HeaderStyle-Width should be used. You can refer to the forum thread below for more information about
Best Practice for Grid and Column widths.
I hope this helps
Best wishes,
Pavlina
the Telerik team

What I don't understand is why when I have static headers on, the columns won't shrink down when the window size shrinks. It will however, expand the columns when I grow the window size. With static headers off it works both ways.
My problem is, there is an abundant of whitespace between columns and way too much padding. I don't understand why the columns don't wrap the text instead of clipping it when I resize the window.
Please help. It is creating way too much horizontal scrolling. And, setting the widths on each column doesn't make sense since the column data is very dynamic in length.

If the RadGrid resizes together with its parent and you are using static headers, then either set pixel widths to all columns (fixed table layout), or do not set any column widths at all (auto layout). However, I am sending you a simple working project that demonstrates the desired functionality. Give it a try and let me know how it goes.
Pavlina
the Telerik team

Can you specify which version of RadControls you are using and in which browser you are testing the project? This problem should not persist with the latest version of RadControls for ASP.NET AJAX.
All the best,
Pavlina
the Telerik team

I'm always at the current release of the controls.
That's my only problem so far with the grid. We love it here.
Hope this helps.