Hi Andrew,
Thanks for contacting Syncfusion support.
We would like to know you that the native change event will not triggered when choose the value from popup. Because when we choose date value from popup, we update the value of input to changed value and so the native change will not triggered.
You can ensure the same scenario with the native input type date, when dynamically change the date using button click the change event will not be triggered. The same has been implemented in our component and here we demonstrated with an example sample with native DatePicker for your reference.
So we suggest you to use our change event as like your given thread:
<form method="post">
<ejs-datepicker floatLabelType="Auto" ejs-for="@Model.Calender" id="Calender" value="@Model.Calender"
name="calender" placeholder="@Html.DisplayNameFor(m=>m.Calender)" change="OnChange"></ejs-datepicker>
<button id="submit">Submit</button>
</form>
<script>
function OnChange(args) {
alert(args.value);
}
</script>
|
Regards,
Ponmani M