I have a TreeGrid displaying some hierarchical data from a DataSource. Also I have a button on the panel with the following event:
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,
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 */ } });
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,
Comment