Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > What class is TreeNode.NewNode in? View modes: 
User avatar
Certified Developer v6
Certified Developer v6
hoppe - 10/17/2012 9:09:26 AM
   
What class is TreeNode.NewNode in?
When I go to call:
new CMS.TreeEngine.TreeNode(dataRow, className);

Intellisense reports:
This constructor is obsolete, use method TreeNode.NewNode instead

I can't find a reference to this call anywhere though. Where is it - where can I find it?

Thanks,
Joe

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 10/17/2012 9:32:42 AM
   
RE:What class is TreeNode.NewNode in?
Hi Joe,

You can find all of TreeNode methods in the Kentico CMS API Reference, like:
CMS.TreeEngine.TreeNode.New(DataRow, String)

Please read the note in the API reference: Creates new TreeNode instance which must inherit the TreeNode class.

Best regards,
Martin Danko

User avatar
Certified Developer v6
Certified Developer v6
hoppe - 10/17/2012 10:21:59 AM
   
RE:What class is TreeNode.NewNode in?
Thanks!

I was using the find command to try and find 'newnode', as the documentation suggested, so New() was not showing up in the results.