Hello
i use MVC 5 and the jsTree3i built my treeview using the code in the attached code.rar file
I want my treeview to refresh without loading the page using javascript
i use
$("#jstree").jstree(true).refresh(true); but treeview is not displayed
$('#jstree').jstree(true).redraw(true); but treeview does not refresh
please could you help me thanks
Jefferson S. MottaPosted Aug 12, 2021, 2:00 AM
Mouhssine tahriPosted Aug 16, 2021, 9:20 AM
Thanks for replay
$('#mytree').jstree(true).settings.core.data = new_data;
$('#mytree').jstree(true).refresh();
dont work for me ; i think using $('#mytree').jstree(true).settings.core.data = new_data;
only if i use json to populate the database.
the way to fill in the database is explained in the attached code.rar file