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.
Unfortunately, activation email could not send to your email. Please try again.

DatePicker and input value

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hello,

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

jQuery(document).ready(function(){
jQuery('#DomainCreationDate').ejDatePicker({"dateFormat":"yyyy-MM-dd","locale":"it-IT"}
);


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 07:43 AM

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.

Thanks,

Saranya.S



Alain Martini
Replied On February 17, 2015 07:31 PM

Hello,
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 05:05 AM

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.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Regards,

Saranya.S



CONFIRMATION

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.

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.

;