Just FYI....for the special case where you just want to select the first node (typical when initialing showing a page), you can use this slightly simpler code:
// Select the first TreeView node
$("#treeElement").data("kendoTreeView").select(".k-first");