Tree Selected Node

Jon Tibbetts asked on January 12, 2015 19:21

Is there a way to set the selected node in the tree via the Kentico api..

Kentico 8.1.6

Recent Answers

Martin Danko answered on January 26, 2015 16:03

Hello Jon,

This is not handled via Kentico API but via JavaScript. You can see that also when you will inspect any element from the Content tree:

<span class="ContentTreeItem" onclick=" SelectNode(85, this); return false;">
<i class="icon-doc icon-doctype" aria-hidden="true"></i> ...

And the method SelectNode from \CMSModules\Content\CMSDesk\Content.js file is called which could be located on the line 342:

// Select node action
function SelectNode(nodeId, nodeElem, tab) { ... }

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.