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

Different PopUps for Editing vs Adding

2 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 13 Sep 2017, 06:41 PM
Is it possible to setup a different popup for use when editing records versus when adding new records?  When editing, there are certain fields we don;t want the user to edit, whereas when adding a new record, there are fields that do have to be set.  I was hoping I could set different templates for adding versus editing.  I suppose I could do it dynamically via javascript, but I was hoping there was a less intrusive method.

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 15 Sep 2017, 08:22 AM
Hello Joe,

The desired result can be achieved using the template property of the Grid popup editor.

We have an example demonstrating this. Please have in mind that both are showing a DropDown editor, but for different fields. In a real scenario, they can be completely different. A similar result can be achieved with the MVC wrappers as well:

http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Editing/use-different-popup-editor-for-create-update

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Joe
Top achievements
Rank 1
answered on 15 Sep 2017, 06:49 PM
Thanks for this.  Unfortunately it came too late, I went ahead an implemented javascript functionality to dynamically change the form around based on whether the user was adding or editing.  Your solution is by far more elegant, but I needed it two days ago, and could't wait for the answer.  I've gotten it noted down for the next time this comes up.
Tags
Grid
Asked by
Joe
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Joe
Top achievements
Rank 1
Share this question
or