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
Memory Leak When adding a formatter with an onclick function
25/10/2010
18:40
Avatar
carloscurotto
Member
Members
Forum Posts: 4
Member Since:
05/07/2010
sp_UserOfflineSmall Offline

I have created a custom formatter that returns a link.  If i put an onclick function in it, the memory of the browser stats growing when reloading the grid.

Please help me.  I have tried adding a css class to each of those elements and removing the reference to the onclick function in the emptyRows funciton but it is not working.

Thanks,

Carlos.

25/10/2010
19:11
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Use the grid option deepempty set to true

http://www.trirand.com/jqgridw.....=deepempty

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.

25/10/2010
20:11
Avatar
carloscurotto
Member
Members
Forum Posts: 4
Member Since:
05/07/2010
sp_UserOfflineSmall Offline

Hi Tony,

I have tried that but it is not working.  I have noted that if i remove the onclick and return an <a> element without the onclick it works fine and does not leak memory.  But i need the onclick to meake the link useful.

I am using jqgrid 3.7.  Windows. IE 7.  Any ideas?

Thanks in advance,

Carlos.

25/10/2010
20:46
Avatar
carloscurotto
Member
Members
Forum Posts: 4
Member Since:
05/07/2010
sp_UserOfflineSmall Offline

carloscurotto said:

Hi Tony,

I have tried that but it is not working.  I have noted that if i remove the onclick and return an <a> element without the onclick it works fine and does not leak memory.  But i need the onclick to meake the link useful.

I am using jqgrid 3.7.  Windows. IE 7.  Any ideas?

Thanks in advance,

Carlos.


Tony, i have tried in chrome and it seems it is not leaking memory.  Could this be related only to the IE? 

Do you know where can i look?  When jqgrid creates the content of each grid.  It concatenates html, is does not any eval of the elementes right?

Thanks in advance,

carlos.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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