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

DatePicker and input value

Thread ID:





118251 Feb 16,2015 08:42 PM UTC Feb 18,2015 10:05 AM UTC JavaScript 3
Tags: ejDatePicker
Alain Martini
Asked On February 16, 2015 08:42 PM UTC


i have a form input wich comes with a prepopulated value:

<input name="data[Domain][creation_date]" class="datepicker" type="text" value="2011-12-13" id="DomainCreationDate"/>

i call


but the datepicker shows up with a placeholder instead of using the input value attribute.
The input value just seems overridden by an empty string.

How can I force the datepicker to use the value already passed in the source page?

I know i can force the value via jQuery('#DomainCreationDate').ejDatePicker({value: "2011-12-13"});
but why not using the value is already on the input?

Thank you.

Saranya Sivakumar [Syncfusion]
Replied On February 17, 2015 12:43 PM UTC

Hi Alain,

Thanks for using Syncfusion products

We have analyzed the reported issue (The datepicker shows up with a placeholder instead of using the input value attribute) with our sample. We are unable to reproduce the issue. Can you please check with the sample in the following location? 

Sample Location: Sample

In the above sample we have used the code snippet which you have provided in the response. Kindly check with the sample. If still you face the problem, please revert us by modifying the sample based on your application along with replication procedure. Also, if possible please share the screenshot or video to showcase the issue. This would be helpful for us to serve you.

Please let us know if you have any queries.



Alain Martini
Replied On February 18, 2015 12:31 AM UTC

First of all Thank you!

I have included a different file.
<script src="../scripts/ej.widget.all.min.js" type="text/javascript"></script>
coming from syncfusionessentialjavascript.zip instead of
<script src="../scripts/ej.web.all.min.js" type="text/javascript"></script>

I have attached the file with my error, wich generates also a "TypeError: t.ListViewBase is undefined"

Thank you for your time!

Attachment: Datepicker_38ce51df.zip

Saranya Sivakumar [Syncfusion]
Replied On February 18, 2015 10:05 AM UTC

Hi Alain,

Thanks for your update.

We were able to reproduce the issue and a support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.


Please let me know if you have any questions.




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