Kendo TreeView Additional Functions

Berikut adalah beberapa contoh fungsi tambahan yang bermanfaat waktu menggunakan Kendo TreeView. [code language=”javascript”] function clearAllCheckbox(){ $(‘#parent-options input[type="checkbox"]’).each(function(){ $(this).prop(‘checked’, false); }); } function checkNodeByNodeElement(element){ $(element).find(‘input[type="checkbox"]’).first().prop(‘checked’, true); } function expandFromRootByNodeElement(element){ $(element).parentsUntil(‘.k-treeview’).filter(‘.k-item’).each( function (index, element) { $("#parent-options").data(‘kendoTreeView’).expand($(this)); } ); } function checkNodeByDirectoryId(allNodes, directoryId){ var currentNode; var treeView = $("#parent-options").data("kendoTreeView"); var currentId, currentUid; for (var i = 0;…