Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to determine if a any form editor has been modified by an end-user

$
0
0

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()


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>