Gerry Polami
Top achievements
Rank 1
Gerry Polami
asked on 23 Feb 2011, 08:48 AM
Hi,
I have a simple radgrid with two records.
Please look at the attached file and see that grid has three lines.
How can i remove the unnecessary third line ?
Thanks,
Gerry
I have a simple radgrid with two records.
Please look at the attached file and see that grid has three lines.
How can i remove the unnecessary third line ?
Thanks,
Gerry
3 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 23 Feb 2011, 09:57 AM
Hello Gerry,
I guess you have set 'Scrolling-AllowScroll="true" in RadGrid which will show empty space below the last record if the grid contain less number of records. In order to remove the empty space below the last record, set appropriate ScrollHeight.
ASPX:
Thanks,
Princy.
I guess you have set 'Scrolling-AllowScroll="true" in RadGrid which will show empty space below the last record if the grid contain less number of records. In order to remove the empty space below the last record, set appropriate ScrollHeight.
ASPX:
<ClientSettings Scrolling-AllowScroll="true" Scrolling-ScrollHeight="105" > </ClientSettings>Thanks,
Princy.
0
Gerry Polami
Top achievements
Rank 1
answered on 23 Feb 2011, 10:46 AM
Hi,
I didn't set the Scrolling-AllowScroll.
I have only two records ,Why do i get a spare gridline ?
Here is my code :
I didn't set the Scrolling-AllowScroll.
I have only two records ,Why do i get a spare gridline ?
Here is my code :
<table border="0" width="100%" > <tr> <td> <telerik:RadGrid ID="grvExemptNomLetter" AutoGenerateColumns="false" OnItemCommand="grvExemptNomLetter_ItemCommand" OnItemDataBound ="grvExemptNomLetter_ItemDataBound" OnItemCreated="grvExemptNomLetter_ItemCreated" AllowAutomaticUpdates="true" runat="server" AllowPaging="false" Width="100%" > <MasterTableView DataKeyNames="" EditMode="InPlace" TableLayout="Auto" ShowHeader="false" ShowFooter="false" ShowGroupFooter="false" > <Columns> <telerik:GridBoundColumn UniqueName="MELEL" DataField="MELEL" ReadOnly="true" /> <telerik:GridBoundColumn UniqueName="ACHUZ" DataField="ACHUZ" ReadOnly="true" /> <telerik:GridBoundColumn UniqueName="KAMUT" DataField="KAMUT" ReadOnly="true" /> </Columns> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> 0
Hello Gerry Polami,
I have tried to reproduce the issue locally, but without success. Here is the code I used:
Could you please verify whether you are using the latest official version of RadControls for ASP.NET AJAX (2010.3.1317)?
Kind regards,
Martin
the Telerik team
I have tried to reproduce the issue locally, but without success. Here is the code I used:
<%@ Page Language="C#" %><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"></head><body> <form id="mainForm" runat="server"> <asp:ScriptManager runat="server" ID="ScriptManager1"> </asp:ScriptManager> <script runat="server"> protected void grvExemptNomLetter_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) { } protected void grvExemptNomLetter_ItemCreated(object sender, GridItemEventArgs e) { } protected void grvExemptNomLetter_ItemCommand(object sender, GridCommandEventArgs e) { } protected void grvExemptNomLetter_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) { System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("MELEL", typeof(int)); table.Columns.Add("ACHUZ"); table.Columns.Add("KAMUT"); for (int i = 0; i < 2; i++) { table.Rows.Add(i, "ACHUZ" + i, "KAMUT" + i); } grvExemptNomLetter.DataSource = table; } </script> <table border="0" width="100%"> <tr> <td> <telerik:RadGrid ID="grvExemptNomLetter" AutoGenerateColumns="false" OnItemCommand="grvExemptNomLetter_ItemCommand" OnItemDataBound="grvExemptNomLetter_ItemDataBound" OnItemCreated="grvExemptNomLetter_ItemCreated" AllowAutomaticUpdates="true" runat="server" AllowPaging="false" Width="100%" OnNeedDataSource="grvExemptNomLetter_NeedDataSource"> <MasterTableView DataKeyNames="" EditMode="InPlace" TableLayout="Auto" ShowHeader="false" ShowFooter="false" ShowGroupFooter="false"> <Columns> <telerik:GridBoundColumn UniqueName="MELEL" DataField="MELEL" ReadOnly="true" /> <telerik:GridBoundColumn UniqueName="ACHUZ" DataField="ACHUZ" ReadOnly="true" /> <telerik:GridBoundColumn UniqueName="KAMUT" DataField="KAMUT" ReadOnly="true" /> </Columns> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> <br /> </form></body></html>Could you please verify whether you are using the latest official version of RadControls for ASP.NET AJAX (2010.3.1317)?
Kind regards,
Martin
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!