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

Knockout binding ReadOnly, Disable ejDatePicker

Thread ID:





117192 Sep 1,2014 10:26 PM UTC Sep 3,2014 03:59 AM UTC JavaScript 1
Tags: ejDatePicker
Asked On September 1, 2014 10:26 PM UTC

Hi, i am using knockoutjs, bootstrap and i am trying to define as disable or readonly the ejDatePicker based on value from other view field.

On regular inputs using standard knockout bindings works fine [user input is blocked] but when using ejDatePicker knockout custom binding ejDatePicker is still active.

Normal Input:
<input type="text" class="form-control" data-bind="value: VALOR, disable: SOLOLECUTURA() == true"/>

ejDatePicker Input:
<input type="text" class="form-control" readonly="true" data-bind="ejDatePicker: { value: VALOR, enableStrictMode: true, dateFormat: 'yyyy-MM-dd' }"/>

thanks for any advice

Sasikala Nagarajan [Syncfusion]
Replied On September 3, 2014 03:59 AM UTC

Hi Hostilio

Thanks for using Syncfusion Products.

 We have analyzed the reported scenario in DatePicker knockout. We can achieve your requirement using “disable” method of our DatePicker control. We have prepared the sample based on your requirement. Please find the sample from below location.


 In this given sample, we have stored some date value in local variable disabled_dates. DatePicker control will get disabled, after entering the any one of the specified date value in variable disabled_dates and focus out from the text box.

Also, we need to clarify that whether the given sample meets your requirement or we misunderstood, if so could please provide more details about the requirement and it will be easy for us to provide the exact solution.

Please let us know if you need any further assistance.


Sasikala Nagarajan


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