The OutlookExpress view has almost exactly what I'm looking for, but instead of clipping columns when there's not enough room, I need it to wrap the text and increase the row height to display the wrapped text.
I set the CellWrapText property to true and it displays the first part of the text with ellipses, but I can't tell if it's wrapping part of the text or just clipping it, because the node/row height doesn't change. My expectation would be (a) the text wraps to a new line when there isn't enough width, (b) the row height increases to display the wrapped text, and (c) no ellipses or clipping.
Question 1: Is it possible to wrap text in OutlookExpress mode?
Question 2: If it does support wrapping in OutlookExpress mode, how I can make the node/row height autosize to display the wrapped text?
Thanks!Jim Honeycutt
Hi - I have a similar requirement to achieve with Ultratree.
I tried the code given above, But when I set the preferred size for a cell, it affects all the nodes in the ultratree. I think, this is because the property is set to columnset. Can't the same cell in different node have different heights when the Ultratree is rendered in OutlookExpress mode?
Krishna
I actually abandoned the OutlookExpress approach since the rows don't autosize to fit the wrapped data, and there was too much clipping if I left the data all on one row.
The OutlookExpress mode is great if you have lots of width available to display the columns with minimal clipping/wrapping. Unfortunately I had to fit my tree into a small width, so it didn't work out. I'm using the normal node-based view instead.
Sorry, don't have any code to help you with that. If you post the specific problem you're having though, the Infragistics folks should be able to point you in the right direction.
Jim
I noticed that you've had success building a tree in outlook express mode. do you have any sample code that you can post? I'm having problems adding child nodes in this mode.
The UltraTree control does not currently support automatic vertical sizing of nodes. If you like you can visit http://devcenter.infragistics.com/Protected/RequestFeature.aspx and submit a request for the feature.
The following code sample demonstrates how to wrap cell text to a second line in the UltraTree control using the OutlookExpress ViewStyle:
treeControl.Override.ItemHeight = (treeControl.Font.Height * 2) + 1;treeControl.ColumnSettings.CellWrapText = DefaultableBoolean.True;
foreach( UltraTreeNodeColumn column in treeControl.Nodes[0].DataColumnSetResolved.Columns ){ column.LayoutInfo.PreferredCellSize = new Size(0, treeControl.Override.ItemHeight);}
Hi Brian, thanks for the answer.
I'm confused though, what would be the point of wrapping text in cells if they don't autosize to let you see the wrapped text?
I'm not sure if you saw what I put in my description of the problem. The tree is in OutlookExpress mode, I am using CellWrapText, but instead of seeing cells that change in height to reflect wrapped text, I'm seeing single-height cells with ellipses.
My concern is that OutlookExpress mode might not support wrapping of text in cells.
Thanks,Jim Honeycutt