The following steps shows the way to adjust the horizontal scroll value, to display the current date at the initial position of the timeline month view.
Step 1: Create an MVC application and include the EJMVC Schedule control in it by referring the following KB link,
Step 2: Define the ActionComplete event of Schedule with appropriate handler, which gets triggered on every successful schedule action completion.
Step 3: Here, OnActionComplete is an event handler function, within which the code to move the horizontal scrollbar to specific position has been added, so that the current date in the month view is positioned to display first. It is done by checking whether the current request type is ‘viewNavigate’ and also the current view is ‘month’ as shown in the below code example.
Step 4: Run the above sample and the horizontal scrollbar will be adjusted automatically to display the current date at the initial position as shown below.
Figure 1: Month view with adjusted horizontal scrollbar.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.