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

6 posts, 1 answers
  1. Raghav
    Raghav avatar
    12 posts
    Member since:
    Aug 2010

    Posted 13 Jul 2011 Link to this post

    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
  2. Answer
    Galin
    Admin
    Galin avatar
    526 posts

    Posted 18 Jul 2011 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Raghav
    Raghav avatar
    12 posts
    Member since:
    Aug 2010

    Posted 19 Jul 2011 Link to this post

    Hi we are already using the SaveScrollPostion option available with the telerik grid.

    but still the position is resetting.
  5. Galin
    Admin
    Galin avatar
    526 posts

    Posted 22 Jul 2011 Link to this post

    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!

  6. Ralf
    Ralf avatar
    77 posts
    Member since:
    Jun 2012

    Posted 05 Jul 2012 Link to this post

    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

  7. Galin
    Admin
    Galin avatar
    526 posts

    Posted 10 Jul 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017