This is a migrated thread and some comments may be shown as answers.

RadGrid Popup Position above row selected

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Visweswara
Top achievements
Rank 1
Visweswara asked on 11 Jun 2012, 04:07 PM
Hi,

I have a radgrid with Editmode as Popup. On click of edit button, the popup is displaying at the top of the grid.
My question is:

How can I position the popup above or below the row which is marked for edit?

Your answers with code snippet would be appreciated

Thank.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Jun 2012, 04:33 AM
Hello Viswesara,

One suggestion is you can customize the popup using the following CSS.
C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
  if (e.Item.IsInEditMode)
  {
    GridEditFormItem editForm = (GridEditFormItem)e.Item;
    editForm.EditFormCell.CssClass = "ClassName";
  }  
}
CSS:
.ClassName
{  
     position:absolute;      
     top:100px;  
     left:100px;      
}
Also you can centralize the popup as explained in this documentation.

Thanks,
Shinu.
Tags
Grid
Asked by
Visweswara
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or