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
adjacency treegrid with large data sets
08/11/2010
10:33
Avatar
doomsayer16
Member
Members
Forum Posts: 4
Member Since:
23/07/2010
sp_UserOfflineSmall Offline

In IE, It seems that when you load large data set with depth of 4-5, a  script will appear "A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive".

jqgrid will exceed the maximum number of script that IE allows.

I tried to study the source code, and i think that the function getNodeParent will be called for each item.

the function getNodeParent will be called recursively.

do you have suggestion on how to fix this?

08/11/2010
12:02
Avatar
doomsayer16
Member
Members
Forum Posts: 4
Member Since:
23/07/2010
sp_UserOfflineSmall Offline

In the getNodeParent function

this block of code below suggest that searching for the parent object uses bubble sort.

var parent_id = $t.p.treeReader.parent_id_field;
                    $(this.p.data).each(function(i,val){
                        if(this.id == rc[Parent_Id] ) {
                            result = this;
                            return false;
                        }
                    });

I think it would be faster if MAP of object is created and the id will be used as key

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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