I am setting the width for a RadGrid multiline edit text box programmatically (see below) - this works fine. I'd also like to set the height of the edit text box to the height of the edited line, i.e. the height of the line should not change when editing and the edit box should be high enough to show the entire cell context.
However, this does not work. The height of the edited line actually shrinks when I hit "edit" and the edit box therefore only shows the first line or so. Any idea what I am doing wrong?
Thanks for looking into this.
However, this does not work. The height of the edited line actually shrinks when I hit "edit" and the edit box therefore only shows the first line or so. Any idea what I am doing wrong?
Thanks for looking into this.
| Private Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound | |
| If (TypeOf e.Item Is GridEditableItem) AndAlso (e.Item.IsInEditMode) Then | |
| Dim editedItem As GridEditableItem = e.Item | |
| Dim wte As GridTextBoxColumnEditor = TryCast(editedItem.EditManager.GetColumnEditor("BUG_KURZTEXT"), GridTextBoxColumnEditor) | |
| Dim txtbx As TextBox = wte.TextBoxControl | |
| With txtbx | |
| .TextMode = TextBoxMode.MultiLine | |
| .Width = Unit.Percentage(100) | |
| .Height = Unit.Percentage(100) '<--- this line has no effect | |
| End With | |
| End If | |
| End Sub |
