Find functionality 'Begin With' and 'Ends With' in Tree

 DhtmlX tree is supporting ‘Contains With’ find functionality with the below code:

  Find |
  Find Next |
  Find Prev

Now, I want to have find functionality ‘Begin With’ and ‘Ends With’.

Please suggest me a waynto achive this.


RamaRao R.

Tree doesn’t provide ‘Begin With’ and ‘Ends With’ functionalities for search.

So, you should create own method to achieve this. There are following methods that can be used in this case:

- getAllSubItems: it returns list of ids in a ceratin branch, for example var list = tree.getAllSubItems(0); returns ids list of all items in tree ( or getSubItems to organize loop through all levels)

- getItemText - returns item label