Page 1 of 1

[INFO REQ] Customize DependencyField combo items display value

Posted: Fri Jan 15, 2021 7:20 pm
by jandresampaio

Hi,

I've checked that in 4.0.6 the Gantt.widget.DependencyField shows the taks and id, in parenthesis. We would like to further customize this combo to show task sequence and maybe other info in the future.
We tried to set the editor type to "predecessor" (https://bryntum.com/docs/gantt/#Gantt/widget/DependencyField) and set a displayField or displayValueRenderer but it doesn't work.

How can we achieve this result?

Thanks


Re: [INFO REQ] Customize DependencyField combo items display value

Posted: Mon Jan 18, 2021 12:47 pm
by alex.l

Hi jandresampaio,

This field doesn't support custom renderers for the input. You can configure the list using https://bryntum.com/docs/gantt/#Gantt/widget/DependencyField#config-listItemTpl
Or/and set https://bryntum.com/docs/gantt/#Gantt/widget/DependencyField#config-dependencyIdField to have sequenceNumber or any other field you want to see in parenthesis.

All the best,
Alex


Re: [INFO REQ] Customize DependencyField combo items display value

Posted: Mon Jan 18, 2021 4:36 pm
by jandresampaio

Hi Alex,

I've used both approaches, but listItemTpl to customize the list items instead of the default format.

Thanks for the help.