1

Is it possible to replicate the search functionality found in ListGrid and implement it for a TreeGrid to find all the tree nodes which matches the search criteria?

Here is the one for the ListGrid:

http://www.smartclient.com/smartgwt/showcase/#grid_adaptive_filter_featured_category

1 Answer 1

1

TreeGrid extends ListGrid. So whatever functionalities you're getting with ListGrid, are also available with TreeGrid. You can definitely have searching functionality in TreeGrid by these properties:

myTreeGrid.setShowFilterEditor(true);
myTreeGrid.setFilterOnKeypress(true);

But these functionalities will work only if you're using DataSource for generating the TreeGrid as per my knowledge.

Hope this information helps you.

7
  • is it possible to generate data into a datasource if you are not using a database? Feb 16, 2012 at 9:18
  • @Adel,Yes it's possible to fill the DataSource statically, without using database.
    – RAS
    Feb 16, 2012 at 10:05
  • How do you populate a datasource with data manually without using an xml file? Feb 29, 2012 at 17:23
  • @Adel,I can give you some code snippets for this but I'll not be able to post it in comment. Can you post this as a separate question?
    – RAS
    Mar 1, 2012 at 5:34
  • here it is (stackoverflow.com/questions/9513148/…) Mar 1, 2012 at 8:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.