Changing type of view dinamically

Hello,

is it posible to change from ProjectView to ResourcesView dinamically? I´m trying with:

$(#myGantt).ejGant({viewType: ej.Gantt.ViewType.ResourceView});  

or:

$(#myGantt).ejGant({viewType: ej.Gantt.ViewType.ProjectView}); 

and it doesn't refresh to the new view. It also makes relationships between tasks to fail when editing a task.

Thanks.

3 Replies

PE Punniyamoorthi Elangovan Syncfusion Team April 18, 2018 12:07 PM UTC

Hi Oscar, 
Thank you for contacting Syncfusion support. 
At present there is no support to directly switch between Project view and Resource view in Gantt. Since the structure of the data source is different for both the views, it is not possible to load the same data source for both the views. And can you please share more details regarding task relations failing while editing the tasks, this would be helpful for us to provide a better solution. 
Regards, 
Punniyamoorthi 



OB oscar bartolome April 19, 2018 08:17 AM UTC

Ok, thanks.  Now it's solved. It was a refreshing problem due to a function I've created.

Thanks.


PE Punniyamoorthi Elangovan Syncfusion Team April 20, 2018 02:14 PM UTC

Hi Oscar, 
We are glad that your issue have been resolved. Please let us know, if you require any further assistance on this. 
Regards, 
Punniyamoorthi 
 


Loader.
Up arrow icon