How to get max "pos" of gantt

when i call gantt.dateFromPos(newValue) , is there a function i can use to get the max possible Pos so that I can know its range? Thanks a lot

you can use gantt.getState method to get the date range of gantt, and then use gantt.posFromDate to get coordinate of the furthest date

var max = gantt.posFromDate(gantt.getState().max_date); … mdate.html