GRIDBOUNDCOLUMN

This article shows how to edit the size of a GRIDBOUNDCOLUMN text box in edit mode (in place editing)

Related Articles

... and you 'll find more on the Telerik ASPNET Grid Menu

Change the text box column height/width for in-place editing 

 

<telerik:GridBoundColumn DataField="Link" ColumnEditorID="LinkEditor" UniqueName="link" HeaderText="Help!"  ></telerik:GridBoundColumn>

 

  Change the size of the text box:

Private Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
    If TypeOf (e.Item) Is GridEditFormItem And e.Item.IsInEditMode Then
        Dim editItem As GridEditFormItem = e.Item
        Dim txtLink As TextBox = editItem("link").Controls(0)
        txtLink.Height = Unit.Pixel(40)
        txtLink.TextMode = TextBoxMode.MultiLine
    End If
 
 
End Sub

 

 

Batch Editing:

Private Sub RadGrid1_PreRender(sender As Object, e As EventArgs) Handles RadGrid1.PreRender
 
    Dim editBox As TextBox = CType(RadGrid1.MasterTableView.GetBatchColumnEditor("Note"), GridTextBoxColumnEditor).TextBoxControl
    editBox.Width = 700
 
End Sub

 

 

 


RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences