I am implementing a detail child row in a grid as per the example at in ..\QuickStart\GridView\Hierarchy\TabbedChildViews
I have a simplified view with a single row and two columns, row height 100 and column 1 width 350, column 2 width 600 (excluding the image)
I am looking for some pointers on how to get the height of the row/cell to scroll when the height of the contained content exceeds the row height. Also how to get the cell to correctly wrap the text?
Currently I am getting the row rendered as in the image, which is incorrect. It is not wrapping the text correctly as the characters are vanishing off the right edge of the first cell. Also, the content loaded into the cell is a lot higher than the cell/row height ( in the provided image the cell field has 15+ lines of text) , but the scroll bar does not allow scrolling for the entire content. How could this be achieved?
The Cells are added to the view as :
viewDef.RowTemplate.Rows(0).Cells.Add(New CellDefinition(column.FieldName, 0, 1, 1))
And the CellFormatting code for the cell is :
e.CellElement.Text = ("<html>" + e.CellElement.RowInfo.Cells(columnSpec.FieldName).Value.ToString().Replace(" ", " ") + "</html>")
e.CellElement.TextAlignment = ContentAlignment.TopLeft
e.CellElement.Padding = New Padding(3)
e.CellElement.TextWrap = True
e.CellElement.AutoSizeMode = RadAutoSizeMode.Auto
e.CellElement.AutoSize = True
The e.CellElement directives have been added via trial and error.
Thanks,
Mark