Skip to Content

SAP UI5 Gantt Chart: Legend does not work on first Click

Nov 14, 2017 at 09:03 AM


avatar image
Former Member

In SAP UI5 Gantt Chart app, legend is provided as a default functionality. On first click of legend button, the popup over does not gets open. One has to click the button twice to see the legend box. Does anyone has a quick fix for this? Also the SAP provided examples has the same problem.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Iftah Peretz
Dec 18, 2017 at 08:21 AM


I looked into it. From what I saw (was working on this template), is that if you remove the part of building the the legend container in the onInit function, the button then responds (by showing an empty container) on the first click.

The line to remove is this one

oGanttChartContainer.setLegendContainer(that._createLegendContainer()); //Reomve this and the button responds

This indicates that in the building of the HTML inside the legend there is a rendering issue.

I continued some more but with no advancements. Hope this is of some use to you.

10 |10000 characters needed characters left characters exceeded