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

Move Popup Window to Same Level as Row?

2 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bradley baker
Top achievements
Rank 1
bradley baker asked on 08 Nov 2009, 07:36 PM
Using IE 8. (Dont know if this happens in others)
When I click on edit to open the popup frame to edit the item the Popup window always loads at the top of the grid even if you select edit mutiple pages down (IE grid has template rows thus each item takes up alot of space).
Is there any way to make the popup window load at the top of the row I just selected to edit?

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 09 Nov 2009, 05:49 AM
Hello Bradley,

You can try out the following code to achieve the required scenario:
aspx:
<telerik:RadGrid ID="RadGrid1" AutoGenerateEditColumn="true" AllowMultiRowEdit="true" runat="server" AllowPaging="True" PageSize="10" DataSourceID="SqlDataSource1"
  <ClientSettings> 
     <ClientEvents OnPopUpShowing="PopUpShowing" /> 
  </ClientSettings> 

js:
 function PopUpShowing(sender, eventArgs) 
        { 
                var  popUp = eventArgs.get_popUp(); 
                popUp.style.top = popUp.parentNode.parentNode.previousSibling.nextSibling.offsetTop.toString() + "px"
        } 

Thanks
Princy.
0
Jyothi Nattava
Top achievements
Rank 1
answered on 22 Mar 2010, 08:16 PM
Hi,

  Does the above solution worked for u? For me it is working but not to the expectations.
I would like to have edit window just opens on the edit row.
Any ideas pls?
Tags
Grid
Asked by
bradley baker
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jyothi Nattava
Top achievements
Rank 1
Share this question
or