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.

Accepted Solutions (0)

Answers (2)

Answers (2)

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.

junwu
Active Contributor
0 Kudos

didn't get your point. what's your scenario?

byId won't give you table?

0 Kudos

Hello thank you for your reply.

What I mainly would like to get is a rendered (filtered) table and byId gives me the table of course,

but it's not a filtered one.

I'm trying to keep indices be selected even after filtering the table.

Thanks.

Eileen

junwu
Active Contributor
0 Kudos

what technically you want? filtered table means?