Ajax Scrolling (Yahoo-like) w/dynamic ScrollHeight: Height resize is visible when additional records retrieved.

2 posts, 0 answers
  1. Andrew Benson
    Andrew Benson avatar
    14 posts
    Member since:
    Jan 2005

    Posted 23 Mar 2010 Link to this post

    I've implemented the Yahoo-like AJAX scrolling in a grid. It works great. There's one small issue which I'd like to resolve. When the scroller is moved to the bottom of the grid and the additional records are retrieved, the grid is re-created (GridCreated fires) and the JS that I use to dynamically resized the ScrollHeight is executed. This causes the height of the grid to visibly change during the AJAX call.

    Any suggestions on how to avoid this "flicker"?

  2. Yavor
    Yavor avatar
    11 posts

    Posted 29 Mar 2010 Link to this post

    Hello Andrew,

    You can perform an "IsPostBack" check on the client, to determine whether to execute the resizing script or not. Additionally, you can use a flag (a hidden input on the page) which can be set from the server, to signify whether you are adding records to the grid from code behind, and when checking this flag from the client, you will know whether to execute the script or not.
    I hope this information helps.

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top