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

How to ENABLE the row DELETE confirmation alert

18 Answers 853 Views
Grid
This is a migrated thread and some comments may be shown as answers.
pawan
Top achievements
Rank 1
pawan asked on 10 Jun 2012, 02:00 PM
Hello All,

How to ENABLE the row DELETE confirmation alert "Are you sure you want to delete this record?" when you delete a record from the Grid?

Here is the sample code from the "Examples" folder.
I tried calling editable.DisplayDeleteConfirmation(true);.

But "DisplayDeleteConfirmation" does not work irrespective of true or false.

How to ENABLE the row DELETE confirmation alert?

Thank you.


@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.ProductViewModel>()    
    .Name("Grid")    
    .Columns(columns => {        
        columns.Bound(p => p.ProductName);
        columns.Bound(p => p.UnitPrice).Width(140);
        columns.Bound(p => p.UnitsInStock).Width(140);
        columns.Bound(p => p.LastSupply).Width(140);
        columns.Bound(p => p.Discontinued).Width(100);
        columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
    })
    .ToolBar(toolbar => toolbar.Create())
    .Editable(editable => { editable.DisplayDeleteConfirmation(true); editable.Mode(GridEditMode.InLine); })
    .Pageable()
    .Sortable()
    .Scrollable()
    .DataSource(dataSource => dataSource  
        .Ajax()                 
        .Events(events => events.Error("error_handler"))
        .Model(model => model.Id(p => p.ProductID))
        .Create(update => update.Action("EditingInline_Create", "Grid"))
        .Read(read => read.Action("EditingInline_Read", "Grid"))
        .Update(update => update.Action("EditingInline_Update", "Grid"))
        .Destroy(update => update.Action("EditingInline_Destroy", "Grid"))
    )
)

18 Answers, 1 is accepted

Sort by
0
pawan
Top achievements
Rank 1
answered on 11 Jun 2012, 07:19 AM
Where is the documentation link for kendoui MVC grid API?

Thanks.
0
Rosen
Telerik team
answered on 11 Jun 2012, 12:04 PM
Hi pawan,

Indeed, the confirmation option does not function correctly. However, we managed to address this issue and the fix will be available with the next release.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
pawan
Top achievements
Rank 1
answered on 11 Jun 2012, 12:13 PM
Thanks Rosen.

Can you please also guide me as to where i can find any any documentation for Kendo UI MVC.

Thanks.
0
Rosen
Telerik team
answered on 11 Jun 2012, 12:17 PM
Hello,

The documentation for KendoUI for ASP.Net MVC can be found here.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sean
Top achievements
Rank 1
answered on 19 Jul 2012, 04:46 PM
Do you know when that fix will be released?
0
Rosen
Telerik team
answered on 20 Jul 2012, 07:32 AM
Hi Sean,

The functionality in question is available in the official Q2 2012 version of KendoUI for ASP.Net MVC.

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sean
Top achievements
Rank 1
answered on 23 Jul 2012, 07:41 PM
I'm using version 2012.2.710.340 and the delete confirmation is not working.  Do I need a different version?
Also I've found that setting the default value for model field doesn't seem to be working.  Do I need a different version?  And if so where do I download and install that version?
0
Rosen
Telerik team
answered on 24 Jul 2012, 11:06 AM
Hi Sean,

Unfortunately, both of the features are currently not available when server binding is used. However, we managed to address this behavior and the fix will be available with the next internal build. 

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
sL342799
Top achievements
Rank 1
answered on 07 Sep 2012, 07:19 PM
Hi Rosen,

Any chance to provide an update on this fix using Server Binding? Last build was from July and we are now in September.

Thanks

0
Rosen
Telerik team
answered on 10 Sep 2012, 06:25 AM
Hi sL342799,

As I have mentioned the fix is available through the internal builds, which you can download via your account

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Simon
Top achievements
Rank 1
answered on 13 Sep 2012, 10:32 AM
any chance of adding functionality to change alert message?
0
Rosen
Telerik team
answered on 13 Sep 2012, 10:47 AM
Hi Simon,

You can set a custom confirmation message through the overload of the Editable's DisplayDeleteConfirmation method.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Simon
Top achievements
Rank 1
answered on 13 Sep 2012, 10:54 AM
Could you please elaborate on that? With an example preferably. I've been trying to do that for past hour without success.
0
Rosen
Telerik team
answered on 13 Sep 2012, 12:20 PM
Hello Simon,

Could you please verify that you are using the latest internal build? As this improvement is also added after the official Q2 2012 release of KendoUI. Please excuse me if I have mislead you.

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Simon
Top achievements
Rank 1
answered on 13 Sep 2012, 12:28 PM
For the time being I've been using kendoui.trial.2012.2.710, waiting for my boss to see how awesome it is and buy a license. I see no newer internal builds.
0
Rosen
Telerik team
answered on 13 Sep 2012, 12:49 PM
Hello Simon,

Unfortunately, in this case you will need to wait for the next official release of KendoUI which will also contain this enhancement.

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Steve
Top achievements
Rank 1
answered on 26 Sep 2012, 04:02 PM
Im having similar issues.  I also am evaluating this for my boss to see.  When is that next release or an internal build coming.

Im kind of stuck here and have been putting in alot of time chasing my tail trying to make things work that dont work as suggested in documentation.  
0
Rosen
Telerik team
answered on 27 Sep 2012, 06:30 AM
Hi Steve,

As you may know the internal builds as well as the minor version are only available to our commercial license holders. The next major release will be the Q3 2012 which will be available in mid November.

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
pawan
Top achievements
Rank 1
Answers by
pawan
Top achievements
Rank 1
Rosen
Telerik team
Sean
Top achievements
Rank 1
sL342799
Top achievements
Rank 1
Simon
Top achievements
Rank 1
Steve
Top achievements
Rank 1
Share this question
or