Hi,
I have a grid, with in-place edit. This grid has more than 50 rows, and when I go and edit one of the bottom rows, it goes in edit mode, then the grid positions itself to the top. I want the grid stay where it is, where I clicked the row for edit. I am not using scrollbars for the grid.
Thanks,
Brenda
I have a grid, with in-place edit. This grid has more than 50 rows, and when I go and edit one of the bottom rows, it goes in edit mode, then the grid positions itself to the top. I want the grid stay where it is, where I clicked the row for edit. I am not using scrollbars for the grid.
Thanks,
Brenda
4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 24 Nov 2008, 07:51 AM
Hi Bren,
Try adding the maintain scroll position attribute to your page directive, on the page to prevent the page from scrolling back to the top after a postback.
ASPX:
Regards
Shinu.
Try adding the maintain scroll position attribute to your page directive, on the page to prevent the page from scrolling back to the top after a postback.
ASPX:
| <%@ Page Language="C#" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
Regards
Shinu.
0
Bren
Top achievements
Rank 1
answered on 24 Nov 2008, 09:50 PM
Shinu,
thanks for your reply. I tried, but it jumps back up again, maybe because it is sitting in a RadAjaxPanel. And also, the grid does not have and is not supposed to have scrollbars.
thanks for your reply. I tried, but it jumps back up again, maybe because it is sitting in a RadAjaxPanel. And also, the grid does not have and is not supposed to have scrollbars.
MaintainScrollPositionOnPostback
="true",
Thanks,
Brenda
0
Bren
Top achievements
Rank 1
answered on 25 Nov 2008, 11:04 PM
Hi Shinu,
MaintainScrollPositionOnPostback="true", actually worked. I had setFocus() on one of the fields on top of the page, that is why it was jumping back on the top after postback.
Thanks,
Brenda
MaintainScrollPositionOnPostback="true", actually worked. I had setFocus() on one of the fields on top of the page, that is why it was jumping back on the top after postback.
Thanks,
Brenda
0
Alex
Top achievements
Rank 1
answered on 11 Jul 2009, 03:23 PM
Hi Shinu,
I have a 5 grids in one panel. I put a style in a panel like this .... style="overflow: scroll; max-height: 400px; height: 400px" ....
All grids have a clientsettings EnablePostBackOnRowClick="true". Whenever I select a grid, I deselect the other grids. That works fine. All grids have 30 rows. So I need to scroll down to select a row in one of those grids. But my PROBLEM is... whenever I select a row in the bottom part of the grid, it then repositions at the top of the grids.
I tried to apply the recommendations you suggested above which is to MaintainScrollPositionOnPostback="true" but to no avail. Please let me know what other way I could resolve it. Thanks in advance.
Alex
I have a 5 grids in one panel. I put a style in a panel like this .... style="overflow: scroll; max-height: 400px; height: 400px" ....
All grids have a clientsettings EnablePostBackOnRowClick="true". Whenever I select a grid, I deselect the other grids. That works fine. All grids have 30 rows. So I need to scroll down to select a row in one of those grids. But my PROBLEM is... whenever I select a row in the bottom part of the grid, it then repositions at the top of the grids.
I tried to apply the recommendations you suggested above which is to MaintainScrollPositionOnPostback="true" but to no avail. Please let me know what other way I could resolve it. Thanks in advance.
Alex