Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Radgrid - GridBoundColumn - Inline editing - Itemstyle-width not working

$
0
0
Hello,

Try with the following code:
Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs)
    If TypeOf e.Item Is GridEditableItem AndAlso TryCast(e.Item, GridEditableItem).IsInEditMode Then
        Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem)
        Dim txt As TextBox = DirectCast(item("Description").Controls(0), TextBox)
        'accessing GridBoundColumn
        txt.Width = Unit.Pixel(50) 'you can set the column with in Percentage
    End If
End Sub

Additionally for more information about accessing cells and rows you can refer to the article below:
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html

Regards,
Pavlina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 

Viewing all articles
Browse latest Browse all 94857

Trending Articles