Delete Confirmation Dialog

3 posts, 1 answers
  1. Chris
    Chris avatar
    13 posts
    Member since:
    Dec 2011

    Posted 15 Aug 2017 Link to this post

    Hello,

    Is there a way to add a confirmation popup via a script ontop of the standard grid delete button on the far right of the row.  I tried to call a javascript function from the OnDeleteCommand of the grid which creates a confirmation dialog and continue on to the event if true.  I couldn't get this to work however it didn't seem to like calling javascript from the telerik control event.  Any help appreciated.

    Thanks

  2. Answer
    Eyup
    Admin
    Eyup avatar
    3825 posts

    Posted 18 Aug 2017 Link to this post

    Hello Chris,

    RadGrid already provides confirmation functionality. You can use GridButtonColumn to achieve this requirement automatically:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/delete-records/adding-a-delete-confirmation

    In addition, I am also attaching a sample RadGrid web site to demonstrate more advanced implementation. 

    Alternatively, if you want to implement a custom approach, you can use GridTemplateColumn and place a Button in its ItemTemplate.

    If you want to delete the row only visually on the client, you can use a GridClientDeleteColumn.

    I hope this will prove helpful.


    Regards,
    Eyup
    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.
  3. Chris
    Chris avatar
    13 posts
    Member since:
    Dec 2011

    Posted 18 Aug 2017 in reply to Eyup Link to this post

    Thanks Eyup - that's exactly what I was after.
Back to Top