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

Batch edit: delete row call invoke a javascript funtion then delete base on condition

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shamim
Top achievements
Rank 1
shamim asked on 15 Mar 2015, 04:36 AM
 Work on Asp.net web page application.

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

1. Click to add a new record
2. The "Delete" link will appear in the new row - it would be nice to have the same X icon

want to Click "Delete" link - it fires a javascript event then i want a validation process on javascript event then want to delete the row

help me to invoke a javascript event on click delete link.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 18 Mar 2015, 02:17 PM
Hi Shamim,

As you can see in the demo that you are referring to, the same X icon is generated for the newly added records.

Regarding the confirmation issue, I will definitely forward this to our developers team, so they could include the confirm on delete for the new records as well.

Currently, the only thing that I could suggest is that you get reference to the delete button within the client-side OnRowCreated event and modify the onclick handler in such manner, so it could execute the confirmation as with the default buttons.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
shamim
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or