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. Image for the cookie policy date

DatePicker and input value


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.

3 Replies

SS Saranya Sivakumar Syncfusion Team 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.



AM Alain Martini 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

SS Saranya Sivakumar Syncfusion Team 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.



Live Chat Icon For mobile
Up arrow icon