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

grid height changes

1 Answer 72 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
James asked on 21 Jan 2009, 04:26 PM
I have one column 'Comments' that contains little/large amounts of data, no matter what I do
I can't seem to force the grid to be a particular size, the grid has paging and page one it may
take 80% of space on next page, where data column 'Comment's has quite a few and it wraps
around it will enlarge the grid and have vertical scrollbar?

Would like to find the attribute or secret to make the grid be, for example 500px height and it
stays there. Have tried quite a few setting and this is what it looks like now, glad I found out
how to paste things so it does not take a HUGE amount of space in the posting!



rad:radgrid id="dgReport" runat="server" skin="Office2007" AutoGenerateColumns="False" GridLines="None"



AllowPaging="True" AllowSorting="True" Width="100%" Height="400px" PageSize="14">






<Selecting AllowRowSelect="True" />






<MasterTableView Width="100%">






<HeaderStyle Width="20px"></HeaderStyle>









<HeaderStyle Width="20px"></HeaderStyle>






<ItemStyle Wrap="False" />



<AlternatingItemStyle Wrap="False" />






<rad:GridBoundColumn HeaderText="MT" DataField="MT" UniqueName="MT"></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="Job ID" DataField="Job #" UniqueName="Job ID"></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="Organization" DataField="Organization" UniqueName="Organization"></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="Work Type" DataField="Work Type" UniqueName="Work Type"></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="Dictator" DataField="Dictator" UniqueName="Dictator" ></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="QA Category" DataField="QA Status" UniqueName="QA Status"></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="QA Proofer" DataField="QA Proofer" UniqueName="QA Proofer"></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="QA Start" DataField="QAStart" UniqueName="QAStart"></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="QA End" DataField="QAEnd" UniqueName="QAEnd"></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="QA Minutes" DataField="QATotalMinutes" UniqueName="QATotalMinutes"></rad:GridBoundColumn>



<rad:GridBoundColumn HeaderText="MT Comments" DataField="MT Comments" UniqueName="Validation Comments">



<ItemStyle Width="400px" />












1 Answer, 1 is accepted

Sort by
Telerik team
answered on 21 Jan 2009, 04:33 PM
Hi James,

In your case you should enable RadGrid scrolling. In this way RadGrid will occupy the same amount of space, no matter how much data it displays.

Best wishes,
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question