var treeview = $("#treeview").data("kendoTreeView");
What is the ".data" function/method ?
Thank you very much and sorry for this very basic question.
1 Answer, 1 is accepted
answered on 26 Sep 2011, 09:04 AM
.data is actually the jQuery .data method. When an element is initialized as Kendo widget (kendoTreeView),
a reference to the kendo object is assigned to the element #treeview.
This reference is set via data method and the key is formatted as kendo+widget name (kendoTreeView).
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!