Edit this page


The OnDataFormDestroying client-side event is raised just before the RadDataForm is destroyed.

Two parameters are passed to the event handler:

  • sender - the RadDataForm control that fired the event

  • eventArgs - an event arguments object of type Sys.CancelEventArgs

The following example illustrates how you can handle the OnDataFormDestroying event:

<telerik:RadDataForm RenderMode="Lightweight" runat="server" ID="RadDataForm4">
        <ClientEvents OnDataFormDestroying="onDataFormDestroying" />
<script type="text/javascript">
    function onDataFormDestroying(sender, args) {
        alert("DataForm destroying");
Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article