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

[Solved] How to scroll to header of RadGird when change page

1 Answer 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ABC
Top achievements
Rank 1
ABC asked on 14 Aug 2009, 03:50 AM
Hi,
Currently I have 2 RadGrid (not using Ajax)
When I change the page index of RadGrid2, so that page postback and scroll to the top
How do I change the page index of RadGrid2, Scrollbar scroll to the header of RadGrid2
Sorry my bad English
Thanks

1 Answer, 1 is accepted

Sort by
0
Mr. Plinko
Top achievements
Rank 1
answered on 17 Aug 2009, 05:30 PM
First, try: setting the SaveScrollPosition under scrolling in client settings to false

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
<MasterTableView> 
 
</MasterTableView> 
        <ClientSettings> 
            <Scrolling AllowScroll="True" SaveScrollPosition="False"  
                UseStaticHeaders="True" /> 
        </ClientSettings> 
    </telerik:RadGrid> 

That should work.

If not, you can try to do it in code behind.

Helpful?

function RadGrid1_DataBound()   
{   
    var gridDomElement = $get("RadGrid1_GridData");   
    gridDomElement.scrollTop = 0;   
}   
  
Tags
Grid
Asked by
ABC
Top achievements
Rank 1
Answers by
Mr. Plinko
Top achievements
Rank 1
Share this question
or