Hi all,
Here is a script to change so the datepicker popup when clicking anywhere inside the textarea of a datepicker (and not just on icon to the right off text):
// Replace YOUR_FIELD_ID with the actual ID of your date attribute (e.g. 'rwcheckindate')
var fieldId = "YOUR_FIELD_ID";
var waitForDatePicker = setInterval(function () {
var $input = $("#" + fieldId);
var dp = $input.length && $input.data("kendoDatePicker");
if (dp) {
// Prevent multiple bindings by namespacing the event
$input.off("focus.dp").on("focus.dp", function () {
dp.open(); // Open the calendar when the field gets focus
});
clearInterval(waitForDatePicker); // Stop checking once bound
}
}, 200); // Checks every 200ms until the DatePicker is ready