Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by shinn on Jul 14, 2008 05:42
open dhtmlx forum
dhtmlxTree

there is a function findItem(...
but it's search by text, how to search by id.
Answer posted by Support on Jul 14, 2008 06:24
If you want check if item with specific ID exists
    if (tree.getParentId(search_id)==="")  alert("Item doesnt exist");

If you need to show|select item with specific ID
    tree.focusItem(search_id);
    tree.selectItem(search_id);