Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › Gantt › Goto to current date
Tagged: gantt
- This topic has 7 replies, 5 voices, and was last updated 1 year, 7 months ago by
Srinivas Duggirala.
-
AuthorPosts
-
February 22, 2022 at 3:15 pm #102883
johnm
ParticipantIs there a way to set the Gantt chart to goto to the current date ?
February 23, 2022 at 2:52 pm #102887martin-jq
ParticipantHello johnm,
There is no such method or property but you may use the ensureVisible method to go to a specific task if this would help.
Best Regards,
MartinSmart HTMLElements Team
https://www.htmlelements.com/April 19, 2024 at 6:25 am #110654Srinivas Duggirala
ParticipantHi Team,
is there any new feature implemented in the releases to go to current date ?
Thanks,
Srinivas
April 19, 2024 at 8:29 am #110655Srinivas Duggirala
ParticipantTeam,
We tried this feature but it is not working as expected, could you please provide example project using Angular.
Thanks,
Srinivas
April 19, 2024 at 12:59 pm #110658Markov
KeymasterHi,
The ‘dateStart’ property determines the start date of the view.
Regards,
MarkovSmart UI Team
https://www.htmlelements.com/April 19, 2024 at 1:45 pm #110660Srinivas Duggirala
ParticipantHi 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
April 19, 2024 at 11:37 pm #110661ivanpeevski
ParticipantHi,
At the moment there isn’t a public method that allows scrolling by date. I have opened a work item about that and we will considering adding this in a future release.
For now, it can be implement with the workaround here – stackblitz
Best Regards,
Ivan PeevskiSmart UI Team
https://www.htmlelements.com/April 22, 2024 at 1:34 pm #110665Srinivas Duggirala
ParticipantThanks Ivan, we tried this and it is working when we switch from week to month but does not work post load process. We are looking into that and reach out if any questions related to Smart HTML
Regards,
Srinivas
-
AuthorPosts
- You must be logged in to reply to this topic.