How can I set width of textbox, dropdown in edit mode while batch editing?
This code is not working :
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))
{
GridEditFormItem editItem = (GridEditFormItem)e.Item;
TextBox txtbx = (TextBox)editItem["LVL"].Controls[0];
txtbx.Width = Unit.Pixel(20);
}
}
I dont want to have half of textbox visible, example in attachment.
This code is not working :
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))
{
GridEditFormItem editItem = (GridEditFormItem)e.Item;
TextBox txtbx = (TextBox)editItem["LVL"].Controls[0];
txtbx.Width = Unit.Pixel(20);
}
}
I dont want to have half of textbox visible, example in attachment.