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

Horizontal Scrolling issue after RAD Grid(With Static headers and dynamic template).

5 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raghav
Top achievements
Rank 1
Raghav asked on 13 Jul 2011, 08:34 AM
Hi,

We are using Telerik 2010.1.415.35 version.

In our application we have a scenario where we will generate rad grid using dynamic template.
we have horizontal and vertical scrolling.
when even am sorting on right most column in the grid it not holding the focus, its resetting to first column always.

this works fine with dynamic columns(dynamic template) with out static headers.
but we with static header it is creating a issue not maintaining scroll position.

Thanks In Advance.
Raghav

5 Answers, 1 is accepted

Sort by
0
Accepted
Galin
Telerik team
answered on 18 Jul 2011, 02:14 PM
Hello Raghav,

If you want the scroll to be at same position on every postback use ClientSettings-SaveScrollPostion="true", eg.:
<telerik:RadGrid runat="server" ID="RadGrid1" >
    <ClientSettings>
        <Scrolling AllowScroll="True" SaveScrollPosition="True">
        </Scrolling>
    </ClientSettings>
</telerik:RadGrid>

I hope this helps.

All the best,
Galin
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Raghav
Top achievements
Rank 1
answered on 19 Jul 2011, 07:03 AM
Hi we are already using the SaveScrollPostion option available with the telerik grid.

but still the position is resetting.
0
Galin
Telerik team
answered on 22 Jul 2011, 01:22 PM
Hi Raghav,

Please check the attached file and let me know if I missed something out.

I hope this helps.

Regards,
Galin
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Ralf
Top achievements
Rank 1
answered on 05 Jul 2012, 12:35 PM
Hi,

same problem here. I have setup the grid settings in code behind. AllowScroll is true and SaveScrollPosition is true also.
The grid ist defined to use static headers. The ViewState of the grid and the ColumnViewState is disabled, because of dynamic reasons.
The grid is placed in a UserControl that will be instanciated by a WebPart in a SharePoint context. The WebPart is using an ASP UpdatePanel. The grid settings will be persisted by the GridSettingsPersister class, as described in a Telerik KB article. 
After Grouping or column filtering the grid does not show the data at the last scroll position.

How to solve the problem?

Best regards,
Ralf

0
Galin
Telerik team
answered on 10 Jul 2012, 01:17 PM
Hi Ralf,

I am afraid I am not able to replicate the issue in your scenario. Could you please try to modify my project in the previous post, so that we can debug this issue locally?

Looking forward to your reply.

All the best,
Galin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Raghav
Top achievements
Rank 1
Answers by
Galin
Telerik team
Raghav
Top achievements
Rank 1
Ralf
Top achievements
Rank 1
Share this question
or