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

RadGrid : can't see auto-generated Insert button

2 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 02 Oct 2008, 01:46 PM
Hi,

For some reasons, I can't see the insert button on the RadGrid.

Here is my aspx code

<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" 
                AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"
                DataSourceID="SqlDataSource1" GridLines="None" Skin="Hay"
                AllowAutomaticInserts="True"
                AllowAutomaticUpdates="True"
                AllowAutomaticDeletes="True"
                AllowMultiRowEdit="True"
                >
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID_News"
                    DataSourceID="SqlDataSource1">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="ID_News" DataType="System.Int32"
                            HeaderText="ID_News" ReadOnly="True" SortExpression="ID_News"
                            UniqueName="ID_News">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Title" HeaderText="Title"
                            SortExpression="Title" UniqueName="Title">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Text" HeaderText="Text"
                            SortExpression="Text" UniqueName="Text">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Date" DataType="System.DateTime"
                            HeaderText="Date" SortExpression="Date" UniqueName="Date">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <FilterMenu EnableTheming="True" Skin="Vista">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                </FilterMenu>
            </telerik:RadGrid>
AllowAutomaticInserts="True" : this option is set up.

However, I can't see the Insert button inside the grid.

Update / Delete work fine though.

Any ideas ?

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 03 Oct 2008, 04:48 AM
Hi Max,

Set the CommandItemDisplay property for the Grid to display the AddNewRecord button.

ASPX:
 <MasterTableView  Name="Master" CommandItemDisplay="Top"   > 
              



Thanks
Shinu
0
Max
Top achievements
Rank 1
answered on 03 Oct 2008, 08:26 AM
Thank you for that mate
Tags
Grid
Asked by
Max
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Max
Top achievements
Rank 1
Share this question
or