Edit this page


The OnDataFormCreating client-side event is raised just before the RadDataForm is created

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 OnDataFormCreating event:

 <telerik:RadDataForm RenderMode="Lightweight" runat="server" ID="RadDataForm3">
        <ClientEvents OnDataFormCreating="onDataFormCreating" />
<script type="text/javascript">
 function onDataFormCreating(sender, args) {
     if (!confirm("Create RadDataForm?")) {

         alert("Creating DataForm canceled");
Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article