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

RadGrid Insert Button missing

5 Answers 503 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mahipal
Top achievements
Rank 1
Mahipal asked on 01 May 2009, 04:15 PM
<telerik:RadGrid ID="RadGrid1" ShowStatusBar="true" GridLines="None" runat="server" AllowAutomaticDeletes="True" 
    AllowAutomaticInserts="True" OnNeedDataSource="RadGrid1_NeedDataSource" PageSize="10" 
    AllowAutomaticUpdates="True" AllowPaging="True" MasterTableView-AllowAutomaticInserts="true" 
    AutoGenerateColumns="True" AutoGenerateDeleteColumn="true" AutoGenerateEditColumn="true"   
    OnInsertCommand="RadGrid1_InsertCommand" OnUpdateCommand="RadGrid1_UpdateCommand" 
     Skin="Web20" OnDeleteCommand="RadGrid1_DeleteCommand">  
    <PagerStyle Mode="NextPrevAndNumeric" /> 
    <MasterTableView InsertItemDisplay="Top">  
    </MasterTableView>   
      
</telerik:RadGrid> 
Hi, This might be a simple issue but I cant figure out what I'm doing wrong. The insert button for the RadGrid is just not showing up like you have in your demos. I'm binding the RADGrid to DataTable with the OnNeedDataSource.  I need the RadGrid to auto generate insert, edit and delete buttons. It does this for the edit and delete buttons but not the insert button. Here is what I have. Please help.

 Thanks
Mahipal

5 Answers, 1 is accepted

Sort by
0
Mahipal
Top achievements
Rank 1
answered on 01 May 2009, 08:45 PM

I was able to fix this by adding the following to the MasterTableView tag. 

CommandItemDisplay="Top"   
 

 

 

 

 

 

 

 

 

 

 

0
René Hézser
Top achievements
Rank 1
answered on 04 May 2010, 12:53 PM
Thank you. I've stumbled across the same problem.
Maybe this should be documented...

René
0
Chen
Top achievements
Rank 1
answered on 03 Jan 2011, 01:32 PM
+1 !!!

0
michelle
Top achievements
Rank 1
answered on 19 Aug 2013, 01:12 AM
Thanks - this was really useful to me!  I was puzzled about why the insert button wouldnt appear!
0
Brian
Top achievements
Rank 2
answered on 10 Jan 2016, 08:29 AM
+1
Tags
Grid
Asked by
Mahipal
Top achievements
Rank 1
Answers by
Mahipal
Top achievements
Rank 1
René Hézser
Top achievements
Rank 1
Chen
Top achievements
Rank 1
michelle
Top achievements
Rank 1
Brian
Top achievements
Rank 2
Share this question
or