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
jqGrid 3.4.2 - treegrid refresh not working
04/03/2009
09:43
Avatar
maxtofa
Member
Members
Forum Posts: 6
Member Since:
15/10/2008
sp_UserOfflineSmall Offline

I have problems with refresh of a treegrid...

When i click the refresh button the data gets reloaded but it leaves the tree as it is and add the first node (my root node) again. You can see the pictures:

Before clicking on refresh:

BeforeImage Enlarger

After clicking on the refresh button

afterImage Enlarger

Is there something i have to implement in the php side to handle the refreshGrid event?

04/03/2009
10:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

There is a bug in grid.treegrid.js (3.4.2 version)

Open this file and find

this.treeANode = 0; (around line 320)

Replace with

this.p.treeANode = 0;

Thank you

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/03/2009
10:39
Avatar
maxtofa
Member
Members
Forum Posts: 6
Member Since:
15/10/2008
sp_UserOfflineSmall Offline

With this modification i have another problem...

When the page load the only row visible is ID 1 - Root

if I click on it the treegrid load the first level under root but Root itself disappear...

See the image...after the click on the Root Node

Image Enlarger

If I click Refresh when the treegrid is open the initial status is reloaded (Only Root node visible)... is this the way it is intended to work?

If I click refresh I go back to the initial status? The entire tree collapsed?

Is there a way to do a refresh and leave the current status of opened branches?

04/03/2009
11:00
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Sorry for this post. I should make some tests before say that this will correct the issue. This will not help, moreover it will break other things. The correction is in base grid and this line should be commented. After some days I will publish another bug fix. Thank you.

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/03/2009
11:34
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Permnently you can try

setTimeout(function(){this.p.treeANode = 0;},500);

Regards

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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