Problem with long projects


how to set range for year combo box in period section of lightbox ?
In my case I can select year from 2009 to 2018 but i need end_date 2023


I have one strange problem. Everything works fine, except one thing:
I cannot create project which is longer than 5 years. For shorter projects, everything is perfect.

Does anyone know where the problem is?

Thanks in advance.

Just one note: I choose time as a type of input control for start and end date and in list box with years I only get option to choose till 2018 year.

specifying the year range is not possible in version 3.1, but this feature will be added in next version.

You can try the attached update-patch (add it after dhtmlxgantt.js). When it’s added you should be able to specify the time range following way:

gantt.config.lightbox.sections = [
{name: “description”, height: 38, map_to: “text”, type: “textarea”, focus: true},
{name: “time”, type: “duration”, map_to: “auto”, year_range: [2010, 2025]}

Starting from dhtmlxGantt 3.2 (early February 2015) you won’t need this patch, the config will be supported by the component (1.27 KB)

Aliaksandr thank you for providing a patch. Now everything works like a charm :smiley:

Thanks a lot.