Can not get multiselect to work

Hi,

I added the multiselect script but due to some reason, I am not able to select more than 1 task. The demo works with all my browsers but on my custom gantt chart. I already checked, if there’s some keydown event listeners preventing shift and ctrl keys from performing anything but there aren’t.

Andy ideas?

Thx!

Andy

Hello,

Could you please provide with access to your application or create a demo, where the problem can be reproduced to help us undestand the cause of the issue?

Hi!

Sure, the demo is on https://demo2.owncollab.com. Username and password are both demo.

With this I am also struggling with the scales and steps. I already set up the scales in the top of the task area but actually I am only able to set durations and start/ end times as hours.

Even if I change the duration scale and step e.g. to minutes and 5 tasks are replaced to full hours. What am I doing wrong in this?

Thx!

Andy

Please, add also template to your application to highlight selected rows:

gantt.templates.task_class = gantt.templates.grid_row_class = gantt.templates.task_row_class = function (start, end, task) { if (gantt.isSelectedTask(task.id)) return "gantt_selected"; };

Seems you need to change the value of duration_unit to another one. “Hour” is default value.
docs.dhtmlx.com/gantt/api__gant … onfig.html

In the sample I see that only visible part of the time scale is rendered on the screen. To start render whole scale, you can use the next configuration:
gantt.config.smart_scales = false;
docs.dhtmlx.com/gantt/api__gant … onfig.html

Thank you, Polina!

In the meantime I could solve nearly all my “issues” and found out, that the multiselect itself was working but the highlighting was missing.

Your snipped helped me to get it working like in your sample.

Again, thank you!

Andy