JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Gantt › Goto to current date › Reply To: Goto to current date
April 19, 2024 at 1:45 pm
#110660
Participant
Hi Markov,
For example:
- Task 1 : dateStart : Jan 1 2023
- Task 2 : dateStart: Jun 1 2023
- Task 3 : dateStart : Mar 1 2024
When we load above tasks, view will be showing Task 1 , but from user perspective we are expecting it will be showing current day to avoid scrolling. In this scneario, we are looking for Go to specific date. Since there is no such funcitonality we want to use ensureVisible as per documentation.
EnsureVisible :Makes sure a Task is visible by scrolling to it.
If we go with suggested approach then user will be always shown Task 1 which is not desired. Please suggest better way to handle the case.
Thanks,
Srinivas