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

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

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew Benson
Top achievements
Rank 2
Andrew Benson asked on 23 Mar 2010, 04:59 PM
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"?

Thanks

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 29 Mar 2010, 06:59 AM
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,
Yavor
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.
Tags
Grid
Asked by
Andrew Benson
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Share this question
or