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

Does HistogramView support other ScheduleHeaderType than Week

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

6 Replies

JA Jesus Arockia Sankaran S Syncfusion Team 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 



MM Martin McSharry 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


JA Jesus Arockia Sankaran S Syncfusion Team 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 



PP Pooja Priya Krishna Moorthy Syncfusion Team 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. 



MM Martin McSharry February 21, 2020 02:43 PM UTC

Awesome, this has solved the issue.

Thank you


KR Karthikeyan Raja Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon