We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Vue 17 beta changing dynamically Gantt dataSource doesn't refresh the control

Thread ID:

Created:

Updated:

Platform:

Replies:

143360 Mar 15,2019 02:51 PM UTC Apr 8,2019 11:15 AM UTC Vue 5
loading
Tags: Gantt Chart
Jaume
Asked On March 15, 2019 02:51 PM UTC

I'm using the new Gantt control in Vue beta 17.1.32 like this:

  <ejs-gantt ref='gantt' 
        dateFormat="dd/MM/yyyy hh:mm"
        :dataSource="events"        
        height = "100%"
        :gridLines="'Both'"
        durationUnit= "Hour"
        :highlightWeekends="true"
        :taskFields="taskFields"
        :timelineSettings= "timelineSettings"
        :dayWorkingTime= "dayWorkingTime">
        </ejs-gantt>

Initially works fine but if later I reload the data and changing the events the control doesn't refresh and the new data is not displayed.
I tried assigning the events with a new json array or using a DataManager as dataSource and executing a new query but none of them worked.

If I use a grid with the same dataSource it works and the new data is show in the grid

I'm doing something wrong or it's a bug?

Regards,
Jaume


Jayakumar Duraisamy [Syncfusion]
Replied On March 19, 2019 05:40 AM UTC

Hi Jaume, 
Greeting from Syncfusion support. 
We would like to thank you for using our new Gantt component in EJ2. We have analyzed your reported query and dynamic updating the data source support not available in our EJ2 Gantt beta version, but it will be available in our Volume 1 2019 main release which is expected to roll-out at the end of March 2019. 
Please let us know, if you need further assistance. 
Regards, 
Jayakumar D 


Oli Wan
Replied On April 3, 2019 11:25 AM UTC

Hi Jaume, 
Greeting from Syncfusion support. 
We would like to thank you for using our new Gantt component in EJ2. We have analyzed your reported query and dynamic updating the data source support not available in our EJ2 Gantt beta version, but it will be available in our Volume 1 2019 main release which is expected to roll-out at the end of March 2019. 
Please let us know, if you need further assistance. 
Regards, 
Jayakumar D 


Hello, 
does version 17.1.38 already fix this Vue-Gantt behaviour? 

I'm experiencing the same problem using for the datasource prop an array, that is changed dynamically based on the current route. 

If is still not fixed, is there a workaround to force the gant reloading/redrawing on the new datasource?   

Thanks, 
Oliver

Mydeen S N [Syncfusion]
Replied On April 4, 2019 01:30 PM UTC

Hi Jaume, 
 
We regret the inconvenience caused. 
 
We are working on this feature support for updating the Gantt’s data source dynamically, as we need to ensure the support in multiple use cases, we need more time for the implementation. We are sure that we will implement this support for updating the data source dynamically and will include this feature in our upcoming Volume 1 2019, service pack 1 release which is expected to be available on mid of May,2019. 
We have also created a feedback regarding this support, you can track it using the below link, 
 
 
Please let us know, if you need further assistance. 

Regards,
Mydeen S N 


Jaume
Replied On April 5, 2019 07:09 AM UTC

I'm using v-if to rerender the Gantt control destroying and recreating the control when I have new data. 
It's inefficient but meanwhile until we don't have the functionallity available it works

Mydeen S N [Syncfusion]
Replied On April 8, 2019 11:15 AM UTC

Hi Jaume, 
 
Thanks for the update. We will update you once the  volume 1, 2019 Service Pack 1 get released. 
 
 
Regards, 
Mydeen S N 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;