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. Image for the cookie policy date
close icon

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

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


4 Replies

JD Jayakumar Duraisamy Syncfusion Team 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 



MS Mydeen S N Syncfusion Team 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 



JA Jaume 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


MS Mydeen S N Syncfusion Team 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 
 


Loader.
Live Chat Icon For mobile
Up arrow icon