Regarding my last post,
Please disregard – ts = null; option that breaks the functionality of the jqGrid subGrid (we will now be unable to click on the + sign)
Binding the click event to each of the 10 rows in the jqGrid takes up about 35Kb. Since I have 10 rows per page my implementation my application is leaking by 350Kb per refresh.
I am not sure how to release this memory that is being consumed by this statement
$(ts.rows.cells[pos]).bind('click', function(e) { /* SOME CODE HERE */ });
Somebody please help 
I started to dig into the jqGrid code for addSubGrid in jqGrid 4.1.2 to check what might be causing the Internet Explorer leak when subGrids are enabled. Finally we narrowed down to this line of code that binds the click event to the cell
Enabling Quirks mode is changing the way the application is being rendered and moving forward since HTML5 might become the standard I would like to not enable quirks mode in IE – but I need to enable the jqGrid subgrid to implement a feature.
Is it possible that the new rows being inserted where the subgrid is present is not being garbage collected by IE.
The mainGrid being
@All visiting this thread
tony said:
Hello,
Maybe you will need to use a certain DOCTYPE.
Using jQuery 1.6.x is not recommended.
Please look at thiew website the problems related to IE.
Regards
Tony,
Thanks for that input. We experimented with various document types and observed the memory usage patterns of jqGrid with the subGrid set to true within IE8. Here is what we found (please note that we used a customized setData method within jqGrid 4.3.1 – will post that function later once we have something concrete)
jQuery version used was still 1.6.2
DT1 –
DT2 –
DT3 –
DT4 –
As you can see from the graph below that setting it to DT3 (Quirks mode) did not cause the leaks as in the other document modes.
Interesting. Will post more as we find with our experiments. Thanks for putting our heads into that direction, Tony !!!
Appreciate your help and inputs. Please do add your thoughts/comments on this.
tony said:
Hello,
Which version of jQuery is used?
Can you please try with the last one.
Regards
Hi Tony,
Thank you for your reply. I am using
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top