Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new nodes in runtime #10

Open
mustax opened this issue Mar 20, 2014 · 2 comments
Open

Create new nodes in runtime #10

mustax opened this issue Mar 20, 2014 · 2 comments

Comments

@mustax
Copy link

mustax commented Mar 20, 2014

It's possible to add new nodes to the grid and make the expand/collapse work?
I can't figure it out how.

Thaks.

@mgoffan
Copy link

mgoffan commented Apr 4, 2014

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)

@lesterjanpearson
Copy link

there will be an issue when the child node your adding is not next to the parent node. trying to figure it out myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants