This is a migrated thread and some comments may be shown as answers.
Grid with Create but without Update
1 Answer 40 Views
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 31 May 2013, 08:13 PM
We have a grid which needs create functionality, but update functionality does not make sense here (it is a many to many relation, so we only need to create/destroy a link, there is no update).

We can give this grid the create command, and specify the create operation, but now there is no "Save" button, as this is usually done by the "Update" button, which in case doesn't exist.

Is there a way to create a "Save" button, that only shows for newly added rows?

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 03 Jun 2013, 08:18 AM
Hello Patrick,


Generally this functionality is not supported, but I would suggest you an easy workaround to achieve it. You should keep the Grid editable and bind to the dataBound event. In the event handler you should hide the Edit button.
E.g.
function dataBound(e) {
    this.table.find(".k-grid-edit").hide();
}

This way the Update button will be shown for new records only.
I hope that this approach will work in the current scenario.

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Patrick
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or