This example illustrates how to determine if a any form editor has been modified by an end-user:
- Handle the client-side ValueChanged event of all editors;
- If any event has been raised once, mark the form's state "modified".
[JScript]var isChanged = false;function OnValueChanged(s, e){ isChanged = true;}
[C#]@Html.DevExpress().TextBox(settings=>{settings.Name="txt1";settings.Properties.ClientSideEvents.ValueChanged="OnValueChanged";}).GetHtml()
[C#]@Html.DevExpress().SpinEdit(settings=>{settings.Name="se1";settings.Properties.ClientSideEvents.ValueChanged="OnValueChanged";}).GetHtml()