hello i’ve customize a task with this code gantt.config.type.renderers but i’ve observed that it does not drag what?
Hello,
Custom task is also possible to drag, please check the sample docs.dhtmlx.com/gantt/samples/0 … _type.html
Could you please create a demo here docs.dhtmlx.com/gantt/snippet/ or show your code to help us undestand the cause of the problem?
i’ve created completed demo have 2 type meeting but the 2 meeting with custom graphics not appaers
Hi,
-
please make sure to define type_renderers before data is loaded into gantt. Otherwise, renderers won’t be applied on inital load. It’s not an issue in your demo, since the initial dataset doesn’t contain items of custom types, but still it’s a potential issue an can be fixed very easily.
-
looks like there is no absolute positioning for a top “.meeting2-project” element, the positioning is set only for it’s child items.
A top element should have absolute positioning in order to make left/top coordinates you apply in type_renderers work. -
also, looks like you don’t specify height for this element and as a result, such elements have zero height - I’m not sure whether it is intended behavior.
-
drag and drop is currently bound to .gantt_task_line class, i.e. only elements which have both task_id attribute and .gantt_task_line class can be moved via drag and drop so you should give that class to your custom element:
main_el.className = “gantt_task_line meeting2-project”;
Please check the updated demo - does it works as required?
docs.dhtmlx.com/gantt/snippet/b64e17fd