Disable selection of a item from the tree

In the dhtmlxTree, I want to make some times not selectable. I only want low level items in the tree to be selectable. first level, second level directory tree, I want them in the tree but not selectable…How can we do that? is there an API for that?

Unfortunately this feature is not available.