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

Position of EditForm

1 Answer 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jakkie van den Esschert
Top achievements
Rank 1
Jakkie van den Esschert asked on 21 Jul 2008, 01:46 PM
Hello all,

I have a question about the RadGrid (for ASP.NET Ajax, latest version):
I am using EditFormType "UserControl".
SaveScrollPosition is set to True.

When the user clicks on an imagebutton, the editform shows up, but it may not be visible on the screen (it's below the viewable area in my browser window).
How can I have the grid scroll down, so the usercontrol becomes visible in my browser ?
Or rather, how can I determine the position of the currently opened editform in Javascript ?

Any help is appreciated.

Sincerely,
Jakkie v/d Esschert

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 23 Jul 2008, 12:09 PM
Hello Jakkie,

You should be able to set the scroll position of the browser to the top and left properties of your user control on the client. Please try attaching a javascript handler to the "onload" property of the user control, where you would get its top and left offset and set the document's scroll values.

Kind regards,
Veli
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Jakkie van den Esschert
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or