hi,
I have only one Grid in my form.
I don't want to use paging but to display all data (some 400 data) all at once with scrollbar, and want to maximise the Grid display to full screen height and width.
However, it never appears in 100% height & 100% width no matter what I do.
Imagine that I have a 19" monitor and the Grid only use up half the screen with scrollbar (rather than full screen with scrollbar) ..
Please help..
Thanks
I have only one Grid in my form.
I don't want to use paging but to display all data (some 400 data) all at once with scrollbar, and want to maximise the Grid display to full screen height and width.
However, it never appears in 100% height & 100% width no matter what I do.
Imagine that I have a 19" monitor and the Grid only use up half the screen with scrollbar (rather than full screen with scrollbar) ..
Please help..
Thanks
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" |
Culture="auto" %> |
<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" |
Namespace="System.Web.UI.WebControls" TagPrefix="asp" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title>Untitled Page</title> |
<style type="text/css"> |
</style> |
</head> |
<body style="height:100%"> |
<form id="form1" runat="server" style="height:100%"> |
<asp:ScriptManager runat="server" ID="Manager1"> |
</asp:ScriptManager> |
<telerik:RadGrid ID="RadGrid1" runat="server" Width="95%" ShowStatusBar="true" AutoGenerateColumns="False" |
PageSize="7" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="False" Height="100%" |
OnDetailTableDataBind="RadGrid1_DetailTableDataBind" OnNeedDataSource="RadGrid1_NeedDataSource" |
OnPreRender="RadGrid1_PreRender" onitemcommand="RadGrid1_ItemCommand"> |
<PagerStyle Mode="NumericPages"></PagerStyle> |
<MasterTableView Width="100%" DataKeyNames="CustomerID" AllowMultiColumnSorting="True" Name="MasterTable" |
CommandItemDisplay="Top" HierarchyLoadMode="Client"> |
<CommandItemTemplate> |
<div align="left"> |
<asp:LinkButton ID="initInsertLinkButton" runat="server" CommandName="InitInsert">Add new |
</asp:LinkButton> |
<asp:LinkButton ID="editSelectedLinkButton" runat="server" CommandName="EditSelected">Edit Selected |
</asp:LinkButton> |
</div> |
</CommandItemTemplate> |
<ExpandCollapseColumn Visible="True"> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridBoundColumn SortExpression="CustomerID" HeaderText="CustomerID" HeaderButtonType="TextButton" |
DataField="CustomerID"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn SortExpression="ContactName" HeaderText="Contact Name" HeaderButtonType="TextButton" |
DataField="ContactName"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn SortExpression="CompanyName" HeaderText="Company" HeaderButtonType="TextButton" |
DataField="CompanyName"> |
</telerik:GridBoundColumn> |
</Columns> |
</MasterTableView> |
<ClientSettings> |
<Selecting AllowRowSelect="True"></Selecting> |
<ClientEvents OnRowSelected="RowSelected"></ClientEvents> |
<Scrolling AllowScroll="true" ScrollHeight="100%" /> |
</ClientSettings> |
</telerik:RadGrid> |
</form> |
</body> |
</html> |