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

Frozen column issues

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhina
Top achievements
Rank 1
Dhina asked on 18 Sep 2008, 07:52 AM

We are getting a white space below the grid and only this is because of frozen column not working properly.

<telerik:RadGrid ID="grdCarReservation" runat="server"

AutoGenerateColumns="False" Skin="Office2007" Width="1240px"

OnItemDataBound="grdCarReservation_ItemDataBound" HeaderStyle-Wrap="false"

AllowMultiRowSelection="True">

<ExportSettings ExportOnlyData="True" IgnorePaging="True"

OpenInNewWindow="True">

<Pdf AllowCopy="True" AllowModify="True" PageHeaderMargin="1px"

PageHeight="15in" PageWidth="25in" PaperSize="A4" />

</ExportSettings>

<MasterTableView>

<RowIndicatorColumn>

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<ExpandCollapseColumn>

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<Columns>

<telerik:GridTemplateColumn UniqueName="Select">

<HeaderTemplate>

<asp:CheckBox ID="chkAll" runat="server" AutoPostBack="true"

OnCheckedChanged="chkAll_CheckedChanged" />

</HeaderTemplate>

<ItemTemplate>

<asp:CheckBox ID="chkSelect" runat="server" AutoPostBack="True"

OnCheckedChanged="ToggleRowSelection" />

<asp:HiddenField ID="hdnStockNo" runat="server" Value='<%#Eval("STOCK")%>' />

<asp:HiddenField ID="hdnChassisNo" runat="server"

Value='<%#Eval("CHASSIS")%>' />

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn HeaderText="Status" UniqueName="Status">

<ItemTemplate>

<asp:DropDownList ID="ddlResStatus" runat="server" AppendDataBoundItems="true"

Height="20px" Width="80px">

<asp:ListItem Text="--Select--" Value="0"></asp:ListItem>

</asp:DropDownList>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridBoundColumn DataField="CUSTOMER_NAME" HeaderText="Customer Name"

UniqueName="Customer Name">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="CUSTOMER_ID" HeaderText="Customer ID"

UniqueName="Customer ID">

</telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="ON_HOLD" HeaderText="On Hold"

UniqueName="On Hold">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="RES" HeaderText="Reserved"

UniqueName="Reserved">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="TEMP" HeaderText="Temp Res"

UniqueName="Temp Res">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="STOCK" HeaderText="Stock No"

UniqueName="Stock No">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="MAKE" HeaderText="Make" UniqueName="Make">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="MODEL" HeaderText="Model"

UniqueName="Model">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="CHASSIS" HeaderText="Chassis No"

UniqueName="Chassis No">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="YOM" HeaderText="YOM" UniqueName="YOM">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="MONTH" HeaderText="Month"

UniqueName="Month">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="REGN DATE" HeaderText="Regn Date"

UniqueName="Regn Date">

 </telerik:GridBoundColumn>

 <teleik:GridBoundColumn DataField="XMISSION" HeaderText="X'mission"

UniqueName="X'mission">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="CAR TYPE" HeaderText="Car Type"

UniqueName="Car Type">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="COLOUR" HeaderText="Color"

UniqueName="Color">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="PS" HeaderText="PS" UniqueName="PS">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="AC" HeaderText="AC" UniqueName="AC">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="PW" HeaderText="PW" UniqueName="PW">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="DOOR" HeaderText="Door" UniqueName="Door">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="FUEL_TYPE" HeaderText="Engine Type"

UniqueName="Engine Type">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="CC" HeaderText="CC" UniqueName="CC">

 </telerik:GridBoundColumn>

 </Columns>

 </MasterTableView>

 <HeaderStyle Wrap="False" />

 <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">

 <Selecting AllowRowSelect="True" />

 <Scrolling AllowScroll="True" EnableVirtualScrollPaging="True"

FrozenColumnsCount="3" ScrollHeight="120px" UseStaticHeaders="True" />

<Resizing AllowColumnResize="True" EnableRealTimeResize="True"

ResizeGridOnColumnResize="True" />

 </ClientSettings>

 </telerik:RadGrid>

 this is the code am having.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 22 Sep 2008, 01:45 PM
Hello Dhina,

From your code snippet I see that you set Height = "1240px" for the entire grid and at the same time ScrollHeight="120px" for the scrollable div displayed when you enable the RadGrid's scrolling feature.

Can this be the reason for the white gap you get when the control is rendered? I suggest you remove one of these settings to see whether this helps.

Best regards,
Stephen
the Telerik team

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