TX Text Control .NET Server

FormFieldSelectionChanged Event

Event|Introduced in 28.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Occurs when the selected item of a SelectionFormField has been changed. The event handler receives an argument of type SelectionFormFieldEventArgs containing data related to this event. The event does not occur, when the SelectionFormField.SelectedIndex property has been used to change the item.

Syntax

public event SelectionFormFieldEventHandler FormFieldSelectionChanged;

Examples

The following example records useful context when form field selection changed occurs.

textViewGenerator.FormFieldSelectionChanged += (sender, e) =>
{
    Console.WriteLine($"Form Field Selection Changed at {DateTime.Now:u}");
};