C1.InputDateFor Client Side

Posted by: johnthomasiii on 9 September 2017, 8:19 am EST

  • Posted 9 September 2017, 8:19 am EST

    Does anyone have an example of capturing the valueChanged for C1.InputDateFor control in javascript? I need to do this to modify the values in other C1.InputDateFor controls that are in the Razor view.
  • Replied 9 September 2017, 8:19 am EST


    You can use this code:

    <script type="text/javascript">
    function inputDateForValueChanged(sender, eventArgs) {
    // Value has changed
    @Html.C1().InputDateFor(m => m.Birthdate).OnClientValueChanged("inputDateForValueChanged");

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels