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

Add New Row Only

1 Answer 1437 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 11 Jul 2016, 12:28 PM

Hi,

I would like to use a grid that will data. The data cannot be edited/deleted once saved. But I want the ability to add a new row. The add new row can be via popup (preferable) or inline. Is this possible? 

All examples I've seen have the Edit/Delete options on each row. When a new row is added these buttons are Save and Cancel...

If using inline editing I want no Edit/Delete buttons to be visible but when a row is added I need the Save Cancel.... better still if I have a popup for adding a new row then I would not need a column for the Edit/Delete.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 13 Jul 2016, 09:09 AM
Hello Jon,

The option to add new rows and not be able to edit the rows once they are saved is possible in the Kendo UI Grid.

Please use the toolbar configuration of the Grid with the command create to display the "Add new record" button:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-toolbar

In the mentioned examples the edit and delete buttons are added additionally using the columns.command configuration of the Grid:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.command

In your case, please do not add an "edit" button to the rows.

Regards,
Stefan
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or