Radgrid - remove empty white row when no records, and remove thick line at bottom of "insert" row.

3 posts, 0 answers
  1. Bijal
    Bijal avatar
    3 posts
    Member since:
    Aug 2013

    Posted 17 Apr 2014 Link to this post

    I'm trying to do a couple of things (picture attached):
    1. Remove the empty white row that shows up when there are no records. How can I get rid of it?
    2. Right below the textbox to insert a new item, there is a double line. Like the border is thicker. How can I remove the thicker border and just have a normal border at the bottom?

    Here's my code:

    <telerik:RadGrid ID="rgImpacts" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="False" AllowAutomaticUpdates="True" AllowSorting="True" CellSpacing="0" DataSourceID="odsImpacts" GridLines="None" Width="800px" AutoGenerateColumns="False" OnInsertCommand="rgImpacts_InsertCommand">
        <AlternatingItemStyle BackColor="White" />
        <MasterTableView CommandItemDisplay="None" DataKeyNames="idImpactId" DataSourceID="odsImpacts" EditMode="InPlace" InsertItemDisplay="Bottom" ShowHeader="False">
                <telerik:GridTemplateColumn DataField="varcharImpact" FilterControlAltText="Filter varcharImpact column" HeaderText="Impact" SortExpression="varcharImpact" UniqueName="varcharImpact">
                        <telerik:RadTextBox ID="txtImpact" runat="server" Text='<%# Bind("varcharImpact") %>' MaxLength="100" Width="600px" />
                        <asp:Label ID="lblImpact" runat="server" Text='<%# Eval("varcharImpact") %>'></asp:Label>
                    <HeaderStyle Width="650px"></HeaderStyle>
                <telerik:GridTemplateColumn FilterControlAltText="Filter EditCommandColumn column" Groupable="False" UniqueName="EditCommandColumn">
                        <asp:LinkButton ID="LinkButton1" runat="server" CssClass="gridLink" CommandName="Update" Text="Update" /> 
                        <asp:LinkButton ID="LinkButton2" runat="server" CssClass="gridLink" CausesValidation="false" CommandName="Cancel" Text="Cancel" />
                        <asp:LinkButton ID="LinkButton4" runat="server" CssClass="gridLink" CausesValidation="false" CommandName="Edit" Text="Edit" /> 
                        <asp:LinkButton ID="LinkButton3" runat="server" CssClass="gridLink" CausesValidation="false" CommandName="Delete" Text="Delete" />
                        <asp:LinkButton ID="LinkButton5" runat="server" CssClass="gridLink" CommandName="PerformInsert" Text="Insert" />
                    <HeaderStyle Width="100px"></HeaderStyle>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column" ButtonType="ImageButton"></EditColumn>

    public partial class ChangeRequestForm : System.Web.UI.Page
            protected void Page_Load(object sender, EventArgs e)
                if (!IsPostBack)
                    rgImpacts.MasterTableView.NoMasterRecordsText = string.Empty;
                    rgImpacts.MasterTableView.NoDetailRecordsText = string.Empty;
                    rgImpacts.MasterTableView.IsItemInserted = true;
            protected void rgImpacts_InsertCommand(object sender, GridCommandEventArgs e)
                GridEditableItem item = e.Item as GridDataItem;
                if (item != null)
                    var varcharImpact = ((RadTextBox) item.FindControl("txtImpact")).Text;
                    e.Canceled = true;

  2. Venelin
    Venelin avatar
    352 posts

    Posted 22 Apr 2014 Link to this post

    Hello Bijal,

    Your question have been answered in the support ticket with ID 811902. Please continue the conversation there.

    Thank you.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Bala
    Bala avatar
    1 posts
    Member since:
    May 2017

    Posted 23 May Link to this post

    Hi team,

    Telerik rad grid automatically inserts a blank row if i delete some record on the other grid.Please find the screen shot.


Back to Top