Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Here is a possible solution. Is there a better way?
selectFirstNode:
function
(treeId) {
var
el = $(
'#'
+ treeId);
tree = el.data(
'kendoTreeView'
);
firstNode = el.find(
'.k-first'
tree.select(firstNode);
}
Since the treeview select() method accepts jQuery selectors too, you can shave off some lines: selectFirstNode: function(treeId) { $("#" + treeId).data("kendoTreeView").select(".k-first"); }