This question is locked. New answers and comments are not allowed.
I like many others would like to display a message to the user indicating that an action has been performed. You currently expose a couple of different Client Events that we can use to produce such results.
The event in question that Im having issues with is the OnDelete Event. It appears that this event fires regarless of what my selection is on the Delete confirmation popup.
Example: I click the delete button, a popup displays 'are you sure you want to delete this?', I click cancel and the client event OnDelete fires.
This makes sence since the call is OnDelete, meaning this event should fire OnDelete. I suppose what im after is an event more like 'OnDeleted'. An event that I can capture after the delete has successfully been completed.
Any ideas on how i can work around this? Or am I going about this the wrong way?
This is what my code is like:
The event in question that Im having issues with is the OnDelete Event. It appears that this event fires regarless of what my selection is on the Delete confirmation popup.
Example: I click the delete button, a popup displays 'are you sure you want to delete this?', I click cancel and the client event OnDelete fires.
This makes sence since the call is OnDelete, meaning this event should fire OnDelete. I suppose what im after is an event more like 'OnDeleted'. An event that I can capture after the delete has successfully been completed.
Any ideas on how i can work around this? Or am I going about this the wrong way?
This is what my code is like:
<%= Html.Telerik().(...).ClientEvents(events => events.OnDelete("onDelete"))%> <script type="text/javascript"> function onDelete(e) { alert("The record has been deleted"); } </script>