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

Disable confirmation on row delete

8 Answers 1384 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 15 Mar 2012, 11:10 AM
Is it possible to override the confirmation on Kendo Grid : editable ?

In generally I'd always avoid javascript alert/confirm. It's just a noisy and terrible default behaviour :)

8 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 15 Mar 2012, 12:06 PM
Hello John,

Bellow i show you can change the message in Grid configuration:
editable: {
 mode: "incell", // mode can be incell/inline/popup with Q1 '12 Beta Release of Kendo UI
 confirmation: "Are you sure?" // the confirmation message for destroy command
},


Greetings,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John
Top achievements
Rank 1
answered on 15 Mar 2012, 12:27 PM
Changing the message is fair enough, but what I would like to do is to disable the confirmation.
I do not want any confirmation once the destroy command is triggered.
0
Accepted
Nikolay Rusev
Telerik team
answered on 15 Mar 2012, 12:48 PM
Hello John,

confirmation: false will do the trick for you.

Greetings,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Clinton Smyth
Top achievements
Rank 1
answered on 16 Mar 2012, 04:47 PM
Hello Nikolay

I tried this and it didn't work as expected.  With confirmation:false set, I clicked on the delete button and the javascript alert box appeared with 'undefined' as the message. Is there anything else I need to set or check?

Thanks
0
Nikolay Rusev
Telerik team
answered on 19 Mar 2012, 08:57 AM
Hello Clinton,

Can you please post your Grid configuration?

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Clinton Smyth
Top achievements
Rank 1
answered on 19 Mar 2012, 05:08 PM
Hi

Just retried it and it's working now!  Can't explain it - just happy to move on.

Thanks for looking into it.
0
Jeremy
Top achievements
Rank 1
answered on 26 Apr 2019, 01:25 PM
Is there a way to do this in Kendo's .NET razor syntax?
1
Jeremy
Top achievements
Rank 1
answered on 26 Apr 2019, 01:27 PM

Found what I was looking for

 

Grid().Editable(e => e.Mode(GridEditMode.InCell).DisplayDeleteConfirmation(false))

Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
John
Top achievements
Rank 1
Clinton Smyth
Top achievements
Rank 1
Jeremy
Top achievements
Rank 1
Share this question
or