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. MottaRank #207 · 11.7K reputationPosted Aug 11, 2021, 10:00 PM EDT
Mouhssine tahriRank #9,604 · 204 reputationPosted Aug 16, 2021, 5:20 AM EDT
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