Two Edit Buttons Different Popup Content

4 posts, 0 answers
  1. Matthew
    Matthew avatar
    18 posts
    Member since:
    Oct 2014

    Posted 29 Jun Link to this post

    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?
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 01 Jul Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Matthew
    Matthew avatar
    18 posts
    Member since:
    Oct 2014

    Posted 05 Jul in reply to Danail Vasilev Link to this post

    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.
  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 07 Jul Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready