<telerik:RadGrid ID="dgHistory" runat="server"
Skin="Office2007"
Height="100%"
Width="100%"
EnableViewState="false"
AutoGenerateColumns="False" >
<MasterTableView AllowSorting="true" AllowNaturalSort="true" EnableViewState="false" TableLayout="Auto" >
<HeaderStyle Width="100%" />
<ItemStyle Font-Size="X-Small" Font-Names="Arial" HorizontalAlign="Left" Wrap="True" BackColor="ActiveCaptionText" />
<AlternatingItemStyle Font-Size="X-Small" Font-Names="Arial" HorizontalAlign="Left" Wrap="True" BackColor="Control" />
</MasterTableView>
<HeaderStyle Wrap="false" />
<ClientSettings>
<Selecting AllowRowSelect="true" />
<Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" />
<ClientEvents OnRowSelected="RowSelected" />
<Resizing EnableRealTimeResize="false" ResizeGridOnColumnResize="False" />
</ClientSettings>
<GroupingSettings CaseSensitive="false" />
</telerik:RadGrid>
function Resize() {
var scrollArea = document.getElementById("<%= dgHistory.ClientID %>" + "_GridData");
if(scrollArea){
setTimeout(
function(){
var header = document.getElementById("<%= dgHistory.ClientID %>" + "_GridHeader");
scrollArea.style.height = document.body.offsetHeight - (header.offsetHeight * 3.5) +
"px";
scrollArea.style.height = document.body.offsetHeight - header.offsetHeight - 32 +
"px";
}, 200);
}
}