2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
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, https://syncfusion.com/kb/3606/how-to-add-the-ejmvc-schedule-control-in-the-mvc-application
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.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/sample-800205219
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. |
2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.