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

Batch Editing, but popup create. Is that possible?

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 09 Aug 2013, 07:56 AM
As I state in the subject.  Is it possible to have batch editing/deletion, but the have a Popup Create?

I actually want to take it a step further and use the values from the grid's 'selected' rows to pre-populate/default the 'Create' pop-up.

Are either possible?

Thanks,
David

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 12 Aug 2013, 04:47 PM
Hi David,

By design Kendo Grid operates in a single edit mode. Using multiple modes is not supported. Please consider working with either the inline or popup edit pattern.

Regarding your second question, if you wish to pre-populate the fields of the newly inserted item, you can use the edit event of the Grid. From the event parameters you can obtain a reference to the model. If the model is new you can modify it via set method.
edit: function(e) {
    var model = e.model;
    if(model.isNew()) {
        //modify the model
    }
}


Regards,
Alexander Valchev
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
David
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or