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

Scroll to FormTemplate

2 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Polaris431
Top achievements
Rank 1
Polaris431 asked on 30 Mar 2009, 01:45 PM
My grid has static headers and scrolling is turned on. Suppose that the grid is loaded with many records. If I go to edit the row located at the top of the visible part of the grid, the FormTemplate will load as expected and all the controls in the FormTemplate are visible. On the other hand, if I edit a row at the bottom of the visible part of the grid while there are still rows below it, the FormTemplate will load as usual but is below the visible area of the grid. The user has to use the vertical scrollbar to scroll down to the FormTemplate in order to enter in data. Is there a way to bring the row being edited to the top of the visible area so that the FormTemplate is visible without scrolling?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 31 Mar 2009, 05:41 AM
Hi,

I guess this is an expected behavior of the Grid since the edit form will appear beneath the row which is being in edit mode. If this is not okay for you consider setting the EditMode to PopUp. You can also refer the following help article which explains how to center the Pop-up edit form.
Center PopUp edit form in RadGrid

Shinu
0
Polaris431
Top achievements
Rank 1
answered on 31 Mar 2009, 06:50 AM
There is a posting that shows how to bring a selected row into the viewable scrolling area. There obviously must be a similiar way of forcing the edited row to appear at the top of the viewable area. The problem is that Telerik doesn't publish the internal DOM tags and attributes that get rendered to the published tags and attributes that developers use in the aspx files. That leaves me with having to reverse engineer the rendered HTML in order to figure out what tag needs to be referenced. It would be helpful if Telerik could at least indicate what parts of the DOM I need to use.
Tags
Grid
Asked by
Polaris431
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Polaris431
Top achievements
Rank 1
Share this question
or