tree - Smartgwt select treenode from code -


i have treegrid in have tree:

tree nodestree = new tree(); treegrid navtreegrid = new treegrid();  navtreegrid.setdata(nodestree); 

and want everytime i'm adding node tree focus on it.

more general, how can code select treenode in tree?

i know navtreegrid.getselectedrecord() method not want.

thank you!

you can use 1 of selectrecord methods.

grid.selectrecord(record); 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -