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

[Solved] How to Pass Column ID or Value to Delete confirmation in Kendo Grid

1 Answer 349 Views
Grid
This is a migrated thread and some comments may be shown as answers.
crazy05
Top achievements
Rank 1
crazy05 asked on 19 Mar 2015, 01:00 AM
I want to pass column value to the delete confirmation. Are you sure you want to delete "Column Value" ? How can I do this ?

@(Html.Kendo().Grid<OrdersViewModel>()
.Name("Orders")
.HtmlAttributes(new {style = "height: 100%; border-width: 0;"})
.Columns(c =>
{
c.Bound(p => p.Id)
.Width(50)
}
.Editable(editable =>
{
editable.Mode(GridEditMode.InLine);
editable.DisplayDeleteConfirmation("Pass COlumn Value here");
}))

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 20 Mar 2015, 01:49 PM
Hello crazy05,

Customizing the delete confirmation message for each row is currently not supported out the box however you can achieve this using a custom solution. I would suggest checking this example, which illustrates how that behavior could be implemented.

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