Unable to disable date field(datepicker) inline data table
Unable to disable date field(datepicker) inline data table
alexander.treyner@pdgm.com
Posts: 2Questions: 2Answers: 0
Hi,
I'm try to disable date field(datepicker) in datatable and it's always enable .
code :
fieldType.date = $.extend.......
"disable": function (conf) {
$.datepicker ?
conf._input.datepicker("disable") :
$(conf._input).prop('disable', true);
}
and JS call :
editor.disable("Start_Date");
- all other fields works good the problem only in date field.
second question, can I change type of datepicker?
Please help..
Thanks
This discussion has been closed.
Answers
I've run into the same issue. A date field defined thus:
does not disable when modified like:
Chris
This question should probably be in the Editor category.
I've just been experimenting with this in my jQuery UI dates demo and it seems to work as expected for me.
For example, open the console on that page and enter:
Then select a row and edit it. The Registered date field is disabled.
Are you able to link me to a test page which shows the issue so I can debug it or otherwise tell me how I can reconstruct the issue?
Thanks,
Allan
Indeed it does work on the demo. However, I am using bootstrap and the demo is not. Is it possible that is causing some issue? Otherwise, I load up the libraries in the same order the demo does.
Your code also appears to work with the bootstrap demo however the
start_date
field does not appear to be adate
field but atext
field, and the problem I see is adate
field problem.I'll try to work up a link back to the page in question tomorrow.
Thanks for your help.
Chris
Incidentally, executing
In the webconsole after page load of the page in my app does not work either.
I load the html into that particular division
#main_content
through aThe resulting table is then loaded by a '$(document).ready' function in the newly loaded content. I wonder if something might be getting borked during that process?
Are you using a plug-in rather than the built in date input field type. If so, which plug-in are you using?
Allan
No. This is a plug-in system I'm using for my app. It does not extend/etc. DT or the editor.
Ah - got it. Thanks for the clarification and following up on this.
Here is a little fix polyfill that you can run after you load Editor that will address this until I release 1.4.1 (which hopefully won't be far into the future - i.e. next week):
Allan
Fixed!
Thanks!
Chris