I like to put an text area in radrgid as GridBoundColumn.
Have multiple rows and a long width.
How I do that?
I found the following code below, but somehow even it nevers shows it in Edit or Insert mode to the code never got triggered. Please help.
protected void rgTask_ItemDataBound(object sender, GridItemEventArgs e)
{
// in insert mode
if ((e.Item is GridEditFormInsertItem) && (e.Item.OwnerTableView.IsItemInserted))
{
GridEditFormInsertItem insertItem = (GridEditFormInsertItem)e.Item;
TextBox txtbx = (TextBox)insertItem["Task_Detail"].Controls[0];
txtbx.MaxLength = 500;
txtbx.Width = 800;
txtbx.TextMode=
TextBoxMode.MultiLine;
}
//in edit mode
if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))
{
GridEditFormItem editItem = (GridEditFormItem)e.Item;
TextBox txtbx = (TextBox)editItem["Task_Detail"].Controls[0];
txtbx.MaxLength = 500;
txtbx.Width = 800;
txtbx.TextMode =
TextBoxMode.MultiLine;
}
}
Thanks!