Enable Persistence

Is there any issue on state persistance on the Gantt Chart? It's not registering any settings on the application local storage.



My versions:
  "dependencies": {
    "@quasar/extras""^1.9.12",
    "@syncfusion/ej2-base""^18.4.43",
    "@syncfusion/ej2-data""^18.4.39",
    "@syncfusion/ej2-dropdowns""^18.4.39",
    "@syncfusion/ej2-navigations""^18.4.42",
    "@syncfusion/ej2-vue-buttons""^18.4.39",
    "@syncfusion/ej2-vue-calendars""^18.4.39",
    "@syncfusion/ej2-vue-dropdowns""^18.4.39",
    "@syncfusion/ej2-vue-gantt""^18.4.44",
    "@syncfusion/ej2-vue-grids""^18.4.39",
    "@syncfusion/ej2-vue-inputs""^18.4.39",
    "@syncfusion/ej2-vue-navigations""^18.4.42",
    "@syncfusion/ej2-vue-schedule""^18.4.42",
    "@syncfusion/ej2-vue-treegrid""^18.4.46",
    "axios""^0.21.1",
    "core-js""^3.8.1",
    "lodash""^4.17.20",
    "moment""^2.29.1",
    "pusher-js""^7.0.3",
    "python-shell""^2.0.3",
    "quasar""^1.14.7",
    "rollbar""^2.20.0",
    "vue-html2pdf""^1.8.0",
    "vue-lodash""^2.1.2",
    "vue-moment""^4.1.0",
    "vuelidate""^0.7.6",
    "vuex-persistedstate""^3.0.0"
  },

3 Replies 1 reply marked as answer

PP Pooja Priya Krishna Moorthy Syncfusion Team March 11, 2021 01:55 PM UTC

Hi Christian, 
Thanks for contacting Syncfusion support.  
Currently we don’t have persistence support in Gantt. We have logged a feature report for this. The status can be tracked through below feedback link.  
This feature will be implemented and included in our upcoming volume 1 SP release which is expected to be rolled out at the end of the April 2021.  
Now we have achieved this by work around solution. Please find the below code example. 
 
methods: { 
    load: function (args) { 
      var obj = document.getElementById("ganttDefault").ej2_instances[0]; 
      obj.treeGrid.enablePersistence = true; 
    }, 
  }, 
 
We have prepared a sample for your reference. Please get the sample from below link.  
 
Thanks,  
Pooja K. 


Marked as answer

CD Christian DAquino December 10, 2021 05:54 AM UTC

Hi Pooja,

This solution of enabling the gantt's treegrid persistence no longer works on the new 19.3.* versions of the package. The datasource isn't rendered on the grid anymore if doing:

var obj = document.getElementById("ganttDefault").ej2_instances[0]; 
obj.treeGrid.enablePersistence = true; 


Any thoughts on now to fix it?



MS Monisha Sivanthilingam Syncfusion Team December 13, 2021 09:48 AM UTC

Hi Christian, 
 
We have analyzed the issue you reported and we would like to tell you that we have not completely provided support for persistence in Gantt Chart. While, we can achieve it through the work-around we shared previously, most of the functionalities are missing. This is the reason why you are facing this issue. However, we have logged a feature report to provide persistence in Gantt Chart. You can track its status from the below feedback link. 
 
 
As we have already lined up some major features, we could not implement this support immediately. We will implement this and include it in any of our upcoming releases. Please cast your vote on this feature. Based on the customer demand we will prioritize the features in our upcoming road map. 
 
Regards, 
Monisha. 


Loader.
Up arrow icon