How to refresh without losing current page position?

QuestionsHow to refresh without losing current page position?
zahira abdala asked 2 years ago

Hi everyone, I want to know if it´s possible refresh the page using
<meta http-equiv=’refresh’ content=’300′> but without lossing the possition.

I mean if Im in the page 45 and in that moment happens the refresh, I need to keep in page 45

2 Answers
Abu answered 2 years ago

If you are loading whole page, you can use session and preserve last page. https://www.gridphp.com/docs/grid-appearance-faqs/#q-how-to-retain-page-number-on-page-refresh

If you need to reload just grid, you can call reload function in setTimeout(). Refer:https://www.gridphp.com/docs/javascript-api-faqs/#q-how-to-reloadrefresh-grid-using-javascript-code-eg-button-click

Another option is to use state persistence.

https://www.gridphp.com/docs/state-persistence/

Abu answered 2 years ago

A correction, to keep calling certain JS function after and interval, you need to setInterval() instead of setTimeout (). Refer some js web help for usage.

Your Answer

7 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?