jquery-treegrid
jquery-treegrid copied to clipboard
Create new nodes in runtime
It's possible to add new nodes to the grid and make the expand/collapse work? I can't figure it out how.
Thaks.
I got this to work
$('<tr class="treegrid-parent-'+id+' treegrid-temp"><td class="special"></td></tr>').insertBefore($(next));
var settings = $.extend({}, $.fn.treegrid.defaults);
$('.treegrid-temp').treegrid('initNode', settings);
where next is other node(tr)
there will be an issue when the child node your adding is not next to the parent node. trying to figure it out myself.