Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by senthil on Feb 12, 2009 03:28
open dhtmlx forum
DHtmlx Tree always the element is selected

i am constructing a tree structure for my page and using dhtmlx tree. Now i face on the element selection in tree. The elements with in the layout in tree is being selected for ever. I could nt able to escape the selection from the tree element. It remains in some element of the tree. The element should be available only on selection of element else a normal mouse click need to be performed.
Answer posted by Alex (support) on Feb 12, 2009 08:47

Please, check that tree xml doesn't contain "select" attribute. But even in this case xml selection the selected item must be changed by clicking another item.

If problem persists, please provide a direct link or any sample to recreate the issue at support@dhtmlx.com

 

Answer posted on Feb 12, 2009 22:09
Answer posted by senthil on Feb 12, 2009 22:16

Hi Alex,

Thanx for ur reply.. i still face the same issue. i hav seen in ur sample it is also present there. The exact problem is after selecting one partcular tree node if the user tries to click on other part within the layout the selected element should be deselected and no elements should be select in this moment.. waiting for ur reply..

 

Answer posted by Alex (support) on Feb 13, 2009 05:19

Hi, 

It is correct behaivour. When user selects some item, selection doesn't leave tree automatically.

There is clearSelection method which allows to unselect all items in tree:

tree.clearSelection();

You can call this method on necessary event.