This is my requirement --
1. I do not want to have the Add New Record button in Grid.
[ I have handled this as below in ItemDataBound event --]
if
(e.Item is GridCommandItem)
{
//Hide Addnew and refersh button from code behind
GridCommandItem cmditem = e.Item as GridCommandItem;
if (cmditem.FindControl("InitInsertButton") != null)
{
cmditem.FindControl("InitInsertButton").Parent.Visible = false;
}
}
2. I have a button "Add New Record" outside the grid, Onclick of this, I want to insert a row in Grid.
Additional Information --
1. I ahve the below piece of code in my aspx page -
<telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton" HeaderText="Edit">
<ItemStyle Width="10%" HorizontalAlign="Center" />
<HeaderStyle Width="10%" HorizontalAlign="Center" />
<FooterStyle Width="10%" HorizontalAlign="Center" />
</telerik:GridEditCommandColumn>
2. When I tried the below piece of code on buttn click,
GridName.MasterTableView.ShowFooter = true;
GridName.Rebind();
I am not getting the Edit image button.
Please suggest.