View previous topic :: View next topic |
Author |
Message |
tom145
Joined: 11 Nov 2007 Posts: 75
|
Posted: Sun Jan 20, 2008 6:52 pm Post subject: Non collapsable rows |
|
|
Hi,
I want some rows to be displayed even if the parent of the row in question has been collapsed. Is this possible to do??
Also if the colMain field is equal to "" or empty I do not want the tree line to be displayed. Is this possible??
Tom |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun Jan 20, 2008 10:01 pm Post subject: Re: Non collapsable rows |
|
|
tom145 wrote: | I want some rows to be displayed even if the parent of the row in question has been collapsed. Is this possible to do?? |
No - not with major modifications to the way the tree works. Probably not possible without purchasing the source code - even then it would be tricky.
An alternative which might achieve the same objective for you is to display some preview information in the parent row. You can format multiline rows using Rich Text (see the Advanced Features sample for an example of this - when the window is resized to be small this sample displays a preview under the main text for the cell in a different font).
You could also do the same thing by implementing your own custom RowWidget to do the painting (see the section in the online help on customizing widgets).
Quote: | Also if the colMain field is equal to "" or empty I do not want the tree line to be displayed. Is this possible?? |
The only way to prevent rows being displayed is to remove the item from the list of children returned for the parent. If you handle the GetChildren event then you can remove from the list of children returned all those rows that don't meet a certain criteria. _________________ Infralution Support |
|
Back to top |
|
|
|