Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by RamaRao R on Nov 18, 2009 21:07
open dhtmlx forum
Find results visibility problem with big Tree

Hello,

Thanks for quick fix.

I am having 50000 nodes in my tree and my tree height is 400px. My find string found in three locations and they are 25000th node, 35000th node and 50,000th node. When I click on 'Find Next' -  35000th node and 50000th node are selecting but they are not visible due to my tree height. So, I have to use scrollbar to view those found nodes.

I am looking for, When I click 'Find Next' - 35000th node  and 50000th nodes should come top of the tree or should be visible without any scrollbar usage.

My code for Find:

<input type="text" id="stext" width="200px" onkeypress="returnKey()">
 <a href="javascript:void(0)" onClick="tree.findItem(document.getElementById('stext').value,0,1)"> Find </a> |
 <a href="javascript:void(0)" onClick="tree.findItem(document.getElementById('stext').value)"> Find Next</a> |
 <a href="javascript:void(0)" onClick="tree.findItem(document.getElementById('stext').value,1)"> Find Prev </a>

And,

I want to change all leaf level text color when the tree is loading.

Please let me know what is the best way to achieve.

Thanks,

RamaRao R.

 

Answer posted by Alex (support) on Nov 19, 2009 02:07

Hello,

>> When I click on 'Find Next' - 35000th node and 50000th node are selecting but they are not visible due to my tree height.

Do you use the latest tree version ? If you do, please provide the sample to reproduce the issue: html page with tree iniaitialization 

>>  want to change all leaf level text color when the tree is loading.

It is possible to change color. But in this case you'll face with performance issue: to change color it is necessary to render all these leaves and Smart Parsing won't help.

It will be better to set text color on server:

<item scolor="..." acolor="..." ...>

acolor - item colour

scolor - color of selected item;