Posted 12 October 2020, 12:16 pm EST
Here’s the JS code I copied and modified from the example
$(function () {
$("#<%=dteSpecificDate.ClientID %>").click(function () {
$("#<%=C1Calendar1.ClientID %>").c1calendar("popup", {
of: $("#<%=dteSpecificDate.ClientID %>"),
offset: '0 2'
});
})
});
I with my limited knowledge of JS can see it is creating an anonymous function to act as a click handler, that then creates a new calendar passing in parameters ‘popup’, and two named properties ‘of’ pointing back to the date dropdownfield and an offset that is just numbers in a string.
it renders the calendar control, but tight against the datecontrol.
I can’t find any documentation for what these numbers are or what they do. It looks very similar to the JQuery popup calendar offset property.
Where can I find an explanation of these parameters?
What I actually want is the calendar positioned in the middle of the screen rather than relative to a control. Is this possible?