Calendar Widget - Show week for custom date

Hi, using the Mx Calendar Widget, does someone know a good way to allow the user to choose a date, and then have the Calendar display the week in which that date falls? Regards, Joris   
1 answers

Hi Joris,

That's possible by using the start pos attribute. If you download the project from github there is a test folder in it. In this test project there is a simulair setup on the page "ListeningDataviewCalendar" which you could simplify and re-use:

Basically what you do is setup the same attribute for the start pos in a datetime picker in the enclosing entity. Then change the date, fire an onchange event in which you refresh the enclosing entity and the calendar will focus on this week.