Last Updated: 15 Aug 2017 08:31 by ADMIN
Created on: 23 Jun 2017 12:49
Category: GridView
Type: Feature Request
GridView: MaxRowHeight
By default, the RadGridView will expand its rows to fit whatever the size of the text content. If you have a large amount of text with newlines, it essentially renders the grid unusable in this state.

The thread http://www.telerik.com/forums/limit-row-height suggests two workaround: 1) using a converter to remove newlines- this is a bad solution because it means the binding on the column must be one-way. 2) Applying styling to the grid's textblock- also not great because its non-obvious and requires a lot of boilerplate.

My suggestion is two properties on the RadGridView: MaxRowHeight and MultilineRowContentBehavior. This second property would determine what happens when a row has multiline content and would take an enumeration: SizeHeightToContent- the current behavior. SingleLineExpandOnEdit- when displaying, shows only a single line of the multiline content. When editing, expands the TextBox to fit the content. SingleLine- displays and edits the content in a single line.
Dilyan Traykov
Posted on: 15 Aug 2017 08:31
Thank you for the feedback, Richard. We will take this into consideration.
Posted on: 14 Aug 2017 16:12
It would be simpler if the Telerik RadGridView just matched what the out-of-the-box DataGrid does with the existing RowHeight property. If you set it, then it will show that amount of data; but (unlike MaxRowHeight) the user can still resize the row to see more if they want to.