Profile Picture

NTreeListNodeSubItem convert to string and find parent name

Posted By Vince McMullin 14 Years Ago

NTreeListNodeSubItem convert to string and find parent name

Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hello Vince,

NTreeListNodeSubItem is an abstract class. Depending of the data type that sub item holds sub item can be of several different types.

With some exceptions (NTreeListNodeImageSubItem, NTreeListNodeBooleanSubItem) all others types has property DisplayValue.

You can use this property to display the string representation of the subItem value.

NTreeListNodeNumericSubItem and NTreeListNodeDateTimeSubItem has also property called FormatString.

You can use this property to specify how to format your datetime or numeric value.

Regarding the second question, you can find the NTreeListNode that specific sub item belongs to its SubItems collection using Owner property.

You can get the name of this node from its Name property.

Of course the name of this node should be previously set, otherwise it will return null.



Best Regards,
Nevron Support Team



Vince McMullin
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 18, Visits: 2
I've been struggling with this for a few hours. How do you convert NTreeListNodeSubItem to a string?

So lets say I have node.subitems(i) and I want to convert to a string so I can read the text?

Also how do I find out the name of the collection from the subitem? For example:
+Parent
--child

I want Parent name in string format.

Please help.



Similar Topics


Reading This Topic