Hi,
I have a Rad Grid used in my application. When i click "Add New" button, the edit column is displayed in the top and i can add new record. Is there a way i can hide the "Add New" button and display the Edit Column by default in the top always so that user can enter the value and click Insert. My Grid code as below,
<telerik:RadGrid ID="rgTest" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" Width="97%" OnNeedDataSource="rgTest_NeedDataSource"
OnUpdateCommand="rgTest_UpdateCommand" OnDeleteCommand="rgTest_DeleteCommand"
OnInsertCommand="rgTest_InsertCommand" AllowAutomaticDeletes="true" Visible="true">
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView Width="100%" CommandItemDisplay="Top" EditMode="InPlace" DataKeyNames="ID"
AllowAutomaticDeletes="true">
<CommandItemSettings AddNewRecordText="Add New" ShowRefreshButton="false" />
<Columns>
<telerik:GridEditCommandColumn UniqueName="TestEdit">
</telerik:GridEditCommandColumn>
<telerik:GridTemplateColumn HeaderText="ID" Display="false" UniqueName="TestID">
<ItemTemplate>
<asp:Label runat="server" ID="lblID" Text='<%# Eval("ID") %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Names" UniqueName="TestName">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem,"Name")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox runat="server" ID="rcbTestName" DataTextField="Name" DataValueField="ID">
</telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" ImageUrl="~/Images/delete16x16.png"
Text="Delete" ConfirmText="Are you sure you want to delete the selected row?">
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>