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.

Knockout binding ReadOnly, Disable ejDatePicker

Thread ID:

Created:

Updated:

Platform:

Replies:

117192 Sep 1,2014 06:26 PM Sep 2,2014 11:59 PM JavaScript 1
loading
Tags: ejDatePicker
Hostilio
Asked On September 1, 2014 06:26 PM

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 2, 2014 11:59 PM

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.

 http://www.syncfusion.com/downloads/support/directtrac/general/datepicker_knockout-1155066.zip

 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.

Regards,

Sasikala Nagarajan


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.

;