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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Does HistogramView support other ScheduleHeaderType than Week

Thread ID:

Created:

Updated:

Platform:

Replies:

151028 Jan 28,2020 03:39 PM UTC Feb 24,2020 08:47 AM UTC ASP.NET MVC 6
loading
Tags: Gantt
Martin McSharry
Asked On January 28, 2020 03:39 PM UTC

Hi 
I'm trying to update the scheduleHeaderSettings in index.js by calling: 

$(`#HistogramChart`).ejGantt("instance").setModel({ "scheduleHeaderSettings": {
            scheduleHeaderType: ej.Gantt.ScheduleHeaderType.Day,
            dayHeaderFormat: "dd MMM yyyy",
        }})

We get the following error in our web console:

Uncaught TypeError: n._calculateLeft is not a function
    at Object._updateGanttRecords (ej.web.all.min.js:10)
    at Object.updateScheduleDates (ej.web.all.min.js:10)
    at Object._changeChartSchedule (ej.web.all.min.js:10)
    at Object._setModel (ej.web.all.min.js:10)
    at Object.setModel (ej.web.all.min.js:10)

This is working without issue with both our project and resource views, but not with the histogram view.
I've attached the razor page used to set up the histogram view.

I've also tried to update the histogram razor page to start the view in scheduleHeaderType.Day instead of week, but this causes the web page to freeze



Attachment: _HistogramChart_e6aae5f2.zip

Jesus Arockia Sankaran S [Syncfusion]
Replied On January 29, 2020 12:06 PM UTC

Hi Martin, 

Thanks for contacting Syncfusion support.  

We have analyzed reported issue but unable to reproduce it. Hence, we have prepared a sample with your requirement that you can find the sample from the below link. 
 
 
If you are still facing the issue, revert us with your code snippet or sample which will help us to serve you better. 
 
Please get back to us, if you need further assistance on this
 
Regards, 
Jesus Arockia Sankaran S 


Martin McSharry
Replied On February 5, 2020 04:34 PM UTC

Hi Jesus

I've investigated this further and I've found out that it's failing to update the histogram because it has resources listed in the chart that don't have any associated tasks.
In the example you provided I've removed "Robert King" from all tasks, attempting to updating the schedule header type now results in the aforementioned bug.

I've attached the modified controller file.

Attachment: Modified_home_controller_6817f215.zip

Jesus Arockia Sankaran S [Syncfusion]
Replied On February 6, 2020 01:00 PM UTC

Hi Martin, 
 
We regret the inconvenience caused.  
 
We were able to reproduce the issue while dynamically updating schedule mode in Histogram view. So we have logged an issue report regarding this. We will provide you a custom patch for this issue by February 14, 2020. You can track its status from below feedback link. 
 
Please let us know if you require further assistance on this. 
 
Regards, 
Jesus Arockia Sankaran S 


Pooja Priya Krishna Moorthy [Syncfusion]
Replied On February 14, 2020 01:57 PM UTC

Hi Martin, 
Thanks for your patience. 
We have fixed the reported issue. Please find the updated script file from below link. 

We have also prepared a sample with updated script file. Please find the below sample link. 
Note: For security purposes, we have removed bin and obj folder. 

Regards, 
Pooja K. 


Martin McSharry
Replied On February 21, 2020 02:43 PM UTC

Awesome, this has solved the issue.

Thank you

Karthikeyan Raja [Syncfusion]
Replied On February 24, 2020 08:47 AM UTC

Hi Martin, 
 
We are happy that your issue has been resolved. Please get back to us, if you need any assistance. 
 
Regards, 
Karthikeyan Raja 


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

Live Chat Icon For mobile
Live Chat Icon