Using Customized Jquery DatePicker

Using Customized Jquery DatePicker

arunjaykrishnanarunjaykrishnan Posts: 7Questions: 2Answers: 0

Hi,

We have a requirement to display customized jquery datepicker. This date picker is required to highlight certain dates.
We are using the following code to achieve this:
$('#datepicker').datepicker({
beforeShowDay : highlightDays, //function to highlight days
showOtherMonths : false,
numberOfMonths : 1,
dateFormat : "ddMyy",
});

We tried with custom fields but on clicking on the calendar the inline date field closes without setting the selected value and getting a jquery error saying the object does not exist. Please help.

Thanks,
Arun

Answers

  • tangerinetangerine Posts: 2,060Questions: 12Answers: 229

    Questions about the jQuery datepicker should be addressed to a jQuery site. You don't appear to be using DataTables' Editor datepicker.

  • arunjaykrishnanarunjaykrishnan Posts: 7Questions: 2Answers: 0

    Data table provides an option for using jquery's data pickers also in the example provided. But if we customize the datepicker like the example I mentioned above. It doesn't seem to work. Also does datatable date picker provide option for highlighting certain dates and disable certain dates. Also does it provides the tool tip functionality when mouse over a date in the calendar?

  • allanallan Posts: 46,069Questions: 1Answers: 6,385 Site admin

    I assume you are using Editor? If so, the date input type will automatically detect if jQuery's DatePicker library is present and then use that.

    You do not need to create your own instance of the DatePicker - Editor will do it for you.

    If you could show your code, or even better a link to a test case, that would be useful.

    Allan

Sign In or Register to comment.