GIJGO
Run Example
Close Window
<html> <head> <meta charset="utf-8" /> <title>Treeview Example</title> <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <script src="https://unpkg.com/gijgo@1.9.14/js/gijgo.min.js" type="text/javascript"></script> <link href="https://unpkg.com/gijgo@1.9.14/css/gijgo.min.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="tree"></div> <script> var tree = $('#tree').tree({ primaryKey: 'id', dataSource: '/Locations/Get', imageUrlField: 'flagUrl' }); tree.on('dataBound', function () { var node = tree.getNodeByText('North America'); tree.expand(node); }); </script> </body> </html>