Skip to Content

Filter sap.m.Tree

Hi All,

I have an sap.m.Tree with a standard tree item. The tree is populated using annoptations from backend.

I want to apply a server side filter to the tree.

Any leads?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 18, 2019 at 09:02 AM

    hi Akshaya,

    If i have understood your query correctly and the filtering is server side, i believe filtering on bindingItems() should work... similar to the way it is done for normal sap.m.table.

    var oBinding = this.getView().byId("idTree").getBinding("items");// apply filters
    
    oBinding.filter(oFilter);

    Thanks,

    Vaibhav

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.