cancel
Showing results for 
Search instead for 
Did you mean: 

[SAPUI5] Get rendered table after applying filter (sap.ui.table.TreeTable)

0 Kudos

Hello all,

I currently have sap.ui.table.TreeTable with search field in the extension.

Is there any way to get rendered table after applying filter?

what I've tried is to apply is something like this code :

                    oTable.getBinding("rows").filter([oFilter]);
                    oTable.addEventDelegate({
                        onAfterRendering: function() {
                          var oBinding = this.getBinding("rows");
                          oBinding.attachChange(function(oEvent) {
                          });
                        }
                      }, oTable);
but onAfterRendering doesn't work for me after filtering. If you have some ref/solution, let me know.Thanks in advance.
View Entire Topic
duncanbarre
Participant
0 Kudos

In your select event you can store the binding paths in an array everytime you select an indice. Next in your afterRendering loop over the rows in the table and everytime it matches the binding path in the array, set the indice as selected.