Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    filterData() in TreeGrid doesn't work

    I have a TreeGrid displaying some hierarchical data from a DataSource. Also I have a button on the panel with the following event:
    Code:
            IButton b = new IButton("Filter");
            b.addClickHandler(new ClickHandler() {
                public void onClick(ClickEvent event) {
                    Criteria cr = new Criteria();
                    cr.addCriteria("name", "something");
                    _documents.filterData(cr); /* _documents is the TreeGrid */
                }
            });
    When I click on it, it doesn't do anything. I checked DevConsole and nothing was reported.

    I tried the same thing with a ListGrid (replacing the type of _documents to ListGrid) and it works as expected!

    I'm wondering if it's a bug or I'm not using it the way it's supposed to be used...

    Thanks,

    #2
    Take a look at the RPC tab to see the request to the server, and what you are returning. See the Tree DataBinding topic from the SmartClient Reference for basic information about how Tree databinding works (if it's not clear enough from the samples).

    Comment

    Working...
    X