Applying the same width to all textboxes in edit mode (telerik radgrid)
Posted on 2013-06-25
When I enter edit mode in a Telerik radgrid I end up with all the textboxes beeing in different width.
I thought of solving this, by looping through all the items that is beeing edited and set them to System.Web.UI.WebControls.Unit.Pixel(300); to change the size.
I have tried with a loop looking something like below, but obviously this will yield error,
Any idea what to do to make them into the same size?
foreach (GridEditFormItem EdItem in rgRelMaterial.Columns)
EdItem.Width = System.Web.UI.WebControls.Unit.Pixel(300);