Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
refresh one grid in real-time
28/11/2009
20:17
Avatar
phicarre
Member
Members
Forum Posts: 132
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

I want to have "real-time" information in my grid. To do that, I refresh every five seconds the grid:

setInterval(function(){jQuery("#list1").trigger("reloadGrid");}, 5000);

Unfortunately the refresh is visible: the grid is empty during a few milliseconds and filled after.

How to eliminate or decrease this "flash" effect ?

30/11/2009
13:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Suppose this is not possible with jqGrid.

You should have a faster network connection, not busy database and at last if you load not much data it will work - not sure if I understand the problem.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

01/12/2009
01:18
Avatar
phicarre
Member
Members
Forum Posts: 132
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

I don't know how to better explain  …

I suppose that my method is correct, isn't it ?

what is not possible: to see the refresh ?

I am using mysql on my old development machine. The network is not sollicitated, my database is almost empty.

02/12/2009
10:12
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Did you mean to remove the Loading... message or something elese.

It seems that I do not understand right

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

04/12/2009
01:44
Avatar
phicarre
Member
Members
Forum Posts: 132
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

You don't understand because I don't explain correctly !

I try with another words Embarassed

With

setInterval(function(){jQuery(”#list1″).trigger(”reloadGrid”);}, 5000);

I refresh every 5 seconds one grid.

Each 5 seconds the content of the grid is deleted and is replaced by a new content

Between the deletion and the insertion there is a gap (a time gap) and this gives the impression of flashing or blinking.

If the content of the database didn't change during 5 seconds, I should not see this effect (with ajax implementation).

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
50 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information