Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #102883
    johnm
    Participant

    Is there a way to set the Gantt chart to goto to the current date ?

    #102887
    martin-jq
    Participant

    Hello 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,
    Martin

    Smart HTMLElements Team
    https://www.htmlelements.com/

    #110654
    Srinivas Duggirala
    Participant

    Hi Team,

    is there any new feature implemented in the releases to go to current date ?

    Thanks,

    Srinivas

    #110655
    Srinivas Duggirala
    Participant

    Team,

    We tried this feature but it is not working as expected, could you please provide example project using Angular.

    Thanks,

    Srinivas

    #110658
    Markov
    Keymaster

    Hi,

    The ‘dateStart’ property determines the start date of the view.

    Regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

    #110660
    Srinivas Duggirala
    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

    #110661
    ivanpeevski
    Participant

    Hi,

     

    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 Peevski

    Smart UI Team
    https://www.htmlelements.com/

    #110665
    Srinivas Duggirala
    Participant

    Thanks 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.