Filter datasource and bind result to treeview

1 posts, 0 answers
  1. Monish
    Monish avatar
    4 posts
    Member since:
    Sep 2012

    Posted 01 Oct 2012 Link to this post


    I am trying to filter the datasource based on the selection on the grid and populate the treeview.
    I am able to filter the data source using the filter property. As this returns Observable objects, I am not able to bind the treeview. In fact, if I mention the datasource of the treeview to this result (which is observable object) nothing happens.

    I even tried using query (as shown below) but still no success to bind the treeview
    var dsFilter = [{ field: "id", operator: "eq", value: selectedItem.BaseObjId}];

    var query = new;
    var data = query.filter(dsFilter).data;

    Let me know if I am missing anything or any better approach to do the same?



Back to Top