/// <summary> /// Handles the Delete event of the gFields control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RowEventArgs"/> instance containing the event data.</param> protected void gFields_Delete(object sender, RowEventArgs e) { if (DeleteFieldClick != null) { var eventArg = new TemplateFormFieldEventArg(FormGuid, (Guid)e.RowKeyValue); DeleteFieldClick(this, eventArg); } }
/// <summary> /// Handles the Reorder event of the gFields control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="GridReorderEventArgs"/> instance containing the event data.</param> protected void gFields_Reorder(object sender, GridReorderEventArgs e) { if (ReorderFieldClick != null) { var eventArg = new TemplateFormFieldEventArg(FormGuid, e.OldIndex, e.NewIndex); ReorderFieldClick(this, eventArg); } }
/// <summary> /// Handles the Add event of the gFields control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> protected void gFields_Add(object sender, EventArgs e) { if (AddFieldClick != null) { var eventArg = new TemplateFormFieldEventArg(FormGuid, Guid.Empty); AddFieldClick(this, eventArg); } }
/// <summary> /// Handles the Rebind event of the gFields control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> protected void gFields_Rebind(object sender, EventArgs e) { if (RebindFieldClick != null) { var eventArg = new TemplateFormFieldEventArg(FormGuid); RebindFieldClick(this, eventArg); } }
/// <summary> /// Tfes the form_ reorder attribute click. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> void tfeForm_ReorderFieldClick( object sender, TemplateFormFieldEventArg e ) { ParseControls(); if ( FormFieldsState.ContainsKey( e.FormGuid ) ) { SortFields( FormFieldsState[e.FormGuid], e.OldIndex, e.NewIndex ); ReOrderFields( FormFieldsState[e.FormGuid] ); } BuildControls( true, e.FormGuid ); }
/// <summary> /// Tfes the form_ rebind attribute click. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> void tfeForm_RebindFieldClick( object sender, TemplateFormFieldEventArg e ) { ParseControls(); BuildControls( true, e.FormGuid ); }
/// <summary> /// Tfes the form_ edit attribute click. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> void tfeForm_EditFieldClick( object sender, TemplateFormFieldEventArg e ) { ParseControls(); ShowFormFieldEdit( e.FormGuid, e.FormFieldGuid ); BuildControls( true ); }
/// <summary> /// Tfes the form_ delete attribute click. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> void tfeForm_DeleteFieldClick( object sender, TemplateFormFieldEventArg e ) { ParseControls(); if ( FormFieldsState.ContainsKey( e.FormGuid ) ) { FormFieldsState[e.FormGuid].RemoveEntity( e.FormFieldGuid ); } BuildControls( true, e.FormGuid ); }
/// <summary> /// Tfes the form_ add attribute click. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> void tfeForm_AddFieldClick( object sender, TemplateFormFieldEventArg e ) { ParseControls(); ShowFormFieldEdit( e.FormGuid, Guid.NewGuid() ); BuildControls( true ); }
/// <summary> /// Handles the Reorder event of the gFields control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="GridReorderEventArgs"/> instance containing the event data.</param> protected void gFields_Reorder( object sender, GridReorderEventArgs e ) { if ( ReorderFieldClick != null ) { var eventArg = new TemplateFormFieldEventArg( FormGuid, e.OldIndex, e.NewIndex ); ReorderFieldClick( this, eventArg ); } }
/// <summary> /// Handles the Rebind event of the gFields control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> protected void gFields_Rebind( object sender, EventArgs e ) { if ( RebindFieldClick != null ) { var eventArg = new TemplateFormFieldEventArg( FormGuid ); RebindFieldClick( this, eventArg ); } }
/// <summary> /// Handles the Edit event of the gFields control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RowEventArgs"/> instance containing the event data.</param> protected void gFields_Edit( object sender, RowEventArgs e ) { if ( EditFieldClick != null ) { var eventArg = new TemplateFormFieldEventArg( FormGuid, (Guid)e.RowKeyValue ); EditFieldClick( this, eventArg ); } }
/// <summary> /// Handles the Add event of the gFields control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> protected void gFields_Add( object sender, EventArgs e ) { if ( AddFieldClick != null ) { var eventArg = new TemplateFormFieldEventArg( FormGuid, Guid.Empty ); AddFieldClick( this, eventArg ); } }