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

Two Edit Buttons Different Popup Content

3 Answers 415 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 29 Jun 2016, 06:45 PM
I've seen similar questions being asked, but haven't been able to find exactly what I'm looking for.  I have a grid that has its grideditmode set to - "PopUp".  I'm trying to find a way to create two grid row buttons (both of which will edit the record) and depending on which button is clicked, the contents of the popup editor would change.  Is it possible to do something like this?

3 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 01 Jul 2016, 06:57 AM
Hi Matthew,

You can add multiple commands in one column by defining columns.command property as array. You can find such an example in this forum post - http://www.telerik.com/forums/how-to-add-multiple-command-buttons-in-the-same-column#WRFzoQYcxkafkhOZsa0AYQ

Regards,
Danail Vasilev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Matthew
Top achievements
Rank 1
answered on 05 Jul 2016, 03:10 PM
Thanks for your response Danail.  However, this isn't what I'm looking for.  I am aware that you can have multiple commands in a single column.  What I'm looking for is a way to have two edit buttons and a custom editor template whose appearance changes depending on which of the two buttons is clicked.
0
Danail Vasilev
Telerik team
answered on 07 Jul 2016, 12:57 PM
Hi Matthew,

You can use the approach from this article - http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Editing/use-different-popup-editor-for-create-update

The only change  you should do is to handle the click event of the button commands where you can detect the clicked button - http://dojo.telerik.com/@d.madjarov/UlaJu

Regards,
Danail Vasilev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Matthew
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Matthew
Top achievements
Rank 1
Share this question
or