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

Insert Record Issue

2 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ruchi
Top achievements
Rank 1
Ruchi asked on 02 Jan 2012, 01:44 PM
Hi All,

I have one simple gridview with inline edit. My problem is that it does not display "Save" and "Cancel" image button while adding new record untill i placed below tag in the gridview

<telerik:GridEditCommandColumn ButtonType="ImageButton">
             </telerik:GridEditCommandColumn>


I just only want to provide Insert functionality to gridview not edit functionality.

Any Idea ?

Regards,
Ruchi 

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jan 2012, 02:05 PM
Hello Ruchi,

You can use the property CommandItemDisplay to provide only insert functionality.
aspx:
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" DataSourceID="SqlDataSource1" >
  <MasterTableView CommandItemDisplay="Top" >
                . . . .
  </MasterTableView>
</telerik:RadGrid>

Attached is the screenshot.

-Shinu.
0
Ruchi
Top achievements
Rank 1
answered on 02 Jan 2012, 02:24 PM
Hi Shinu,

Thanks for the reply.

I have used the same property but my problem is that It will open the template to insert record but not displayed "Save" and "Cancel" image button

Regards,
Ruchi
Tags
Grid
Asked by
Ruchi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ruchi
Top achievements
Rank 1
Share this question
or