cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get all rows of aggregation ‘rows’ in an gantt chart?

Former Member
0 Kudos
129

Hello,

Is there any way I can read ALL rows of aggregation ‘rows’ in an gantt chart in my UI5 application (independent of visible)?

var visibleRows = oGanttChartWithTable.getRows();

console.log(visibleRows.length);

In my Model I have also 13 elements.

oGanttChartWithTable.bindAggregation("rows",

     {

       path: "test>/root",

       parameters: {

             arrayNames: ["children"]

                    }

     }

);


It’s always 11 or less (visible rows in GanttChartTableTree) when I use:


for (var i = 0, len = rows.length; i < len; i++) { 

     ...

}

Regards

Katja

Accepted Solutions (0)

Answers (2)

Answers (2)

semilio
Explorer
0 Kudos

Hi,

Your post is very old, but I still want to share this information. This problem is very complicated and I believe someone might benefit from this info.

You can get all rows information like this:


var allRows = this.getView().byId("GanttChartContainer").selectRows(0).getAllRowData();
saivellanki
Active Contributor
0 Kudos

Hi Katja,

You can try something like this:


var oGanttChart = sap.ui.getCore().byId("oGanttChart");     //Get Hold of Gantt Chart

var oBinding = oGanttChart.getBinding("rows");

var oRows = oBinding.getModel().getProperty(oBinding.getPath());          //Get hold of All rows

Regards,

Sai Vellanki.