We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

change event for ej-datetimepicker

Thread ID:





127071 Oct 24,2016 01:32 PM UTC Oct 25,2016 02:20 PM UTC JavaScript 1
Tags: ejDateTimePicker
Sarah Roper
Asked On October 24, 2016 01:32 PM UTC

– we’ve got the ng-blur and the control has e-change which happens when the date/time picker control is opened and a new date/time selected
But what about when the user just types inside the text box without opening the control?
How can we tell that the date/time has changed while the user is still typing into the box?

Francis Paul Antony Raj [Syncfusion]
Replied On October 25, 2016 02:20 PM UTC

Hi Sarah, 
Thanks for contacting Syncfusion support. 
We would like to let you know that ‘change’ event in Date/Time Picker control will be triggered in the following cases. 
#1) when select the Date/Time value from popup. 
#2) FocusOut occurs after a valid date value typed into Date/Time Picker textbox. 
So you can achieve your requirement (“trigger change event after typing the date/time value in textbox”) as per the below code example. 
<input type="text" id="dateTime" ej-datetimepicker e-value='value' e-change='onChange' /> 
        angular.module('DateTimeCtrl', ['ejangular']) 
           .controller('DateTimePickerCtrl', function ($scope) { 
               $scope.value = "5/18/2016 2:47 AM"; 
               $scope.onChange = function(e) { 
                alert("Change Event Triggered with " + e.value); 
Kindly get back to us if you need any further assistance. 
Francis Paul A 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon