Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by aalekhya on Feb 27, 2009 08:10
open dhtmlx forum
find functionality in tree

Hi
Iam using dhtmltree in my code.
I used find functionlity in it.
For normal text it is working.
But for special characters like(<,>...etc) it is not working correctly.
In dhtmtree.js i changed the regexp so that add some special characters in it.
Some of them are working.But <,> these symbols are not working.
Remianing special characters also,behave differently.
When i first call find function it shows correct location
But next time it is not working correctly.Please provide me solution

Thanks
aalekhya
Answer posted by Alex (support) on Mar 02, 2009 03:33

Hi,

Unfortumately, the tree supports only text search. 

In case of special symbols you can try to change the search regular expression in the internal tree code (dhtmlxtree.js, line 3986): 

searchStr = new RegExp(searchStr.replace(/([\?\*\+\\\[\]\(\)]{1})/gi,"\\$1").replace(/ /gi,".*"),"gi");