NTreeListNodeSubItem convert to string and find parent name


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
Vince McMullin
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
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search