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
how to evict the flickering on reload by using updategridrows
12/02/2010
20:01
Avatar
phicarre
Member
Members
Forum Posts: 132
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

I didn't find in the forum and in the demo one full example how to use the updateGridRows method (thank you, I already read the doc).

I would like to evict the flickering on reload.

I suppose, for each row of the grid, I must extract the id and compare the same row in the received postdata.

If the ids are equal then I must update the row of the grid with updategridrows.

In order to do all these things I must declare one function as datatype.

Is it the good method ?

17/02/2010
12:08
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

IMHO not a desired solution

The purpose of updateGridRows is to update data with equal id's and to to add new one.

Some possible solution

$("#grid").jqGrid({

...

loadonce:true,

...

});

then for your solution

setInterval( function(){

$.ajax({

....

complete: function(response, status) {

// get your data here and pass it to the grid

$("#grid").updateGridRows(...);

}

});

},2000);

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.

18/02/2010
13:22
Avatar
phicarre
Member
Members
Forum Posts: 132
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

Thank you for this canvas bu,t as I said in another thread, it's the syntax of the updateGridRows which is not well understood by me and by other guys ...

20/02/2010
12:28
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Which other people do not understand this?

The method is standart jqGrid method and there is nothing something special.

The method is applied to specified grid with parameter array and the name of the id row.

Is something that you do not understand?

The passed array replaces the data in the grid if it find the id.

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.

27/12/2010
12:58
Avatar
otinanism
Member
Members
Forum Posts: 21
Member Since:
27/10/2010
sp_UserOfflineSmall Offline

Hi,

tony, you say "The purpose of updateGridRows is to update data with equal id's and to to add new one."

Do you mean that if it finds the row it updates it and if it does not it adds it to the grid? Because I tried using it and it does update correctly, buit it does not add new row if id is not found. Is there any functionality fo this ( update or add if not found at the same time)?

Thank you in advance.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
54 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