Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
WebCurrencyEditor not triggering onchange event
posted

I am trying to trigger the onchange event from a WebCurrencyEditor control.  

<ig:WebCurrencyEditor runat="server" onchange="alert('WebCurrencyEditor');" />

Not sure what's missing here.

  • 10685
    Suggested Answer
    Offline posted

    Hello,

    It is possible to handle several ClientSide events exposed from the editor’s API. For example TextChanged, ValueChanging, ValueChanged. Most have a corresponding server side event. Such are OnTextChanged and OnValueChanged.

    <script>
            function textChanged() {
                alert('textChanged');
            }

            function valueChanging() {
                alert('valueChanging');
            }

            function valueChanged() {
                alert('valueChanged');
            }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <ig:WebScriptManager ID="WebScriptManager1" runat="server"></ig:WebScriptManager>
                <ig:WebCurrencyEditor ID="WebCurrencyEditor1" runat="server"
                    OnTextChanged="WebCurrencyEditor1_TextChanged"
                    OnValueChanged="WebCurrencyEditor1_ValueChanged"
                    ClientEvents-TextChanged="textChanged"
                    ClientEvents-ValueChanging="valueChanging"
                    ClientEvents-ValueChanged="valueChanged">
                </ig:WebCurrencyEditor>
            </div>
        </form>
    </body>

    What is more, in case you are not familiar with, please feel free to take a look at our online samples where a large amount of the functionality is covered.
    http://www.infragistics.com/samples/aspnet/editors/client-interaction-all-controls