I have a test case here where I think I covered pretty much every requirement I could find in the docs to enable viewing the grid row form like when selected in this example. I’m probably too deep into this now but I get no javascript errors/warnings at all to follow up…
I should doubleclick a record and get to view the gridrow but it’s blackhole-ing me. I could use some fresh eyes on this issue. Nor the pager icon nor doubleclick seems to work.
Can anyone help me on my way? thanks for any help. If the code does error out when you try it I’m in the middle of trying something out, so I will make sure it’s syntax checks out when done.
First of all I recommend you to replace
jquery.jqGrid.jsfile which is minimized version of jqGrid 4.1.1 tojquery.jqGrid.src.jsfrom the current jqGrid 4.4.1. In general you should always try to reproduce the same problem injquery.jqGrid.src.jsif you have it injquery.jqGrid.min.js. jqGrid will be permanently changed, many bug fixes will be fixed and new features will be added. For example jqGrid 4.3.3 have fixed wrong calculation of the grid width in Google Chrome version >=19 described here. It was implemented fixes to support current versions of jQuery 1.6 and many many other things. The version jqGrid 4.1.1 is almost two years old, which is really much in the world of web.Additionally I would recommend you never use
afterInsertRowand always usegridview: true. The reason is the performance of the grid. It’s very important to understand that working with elements on the page (the DOM elements) should be other organized as with any other variables known in the computer language. The reason is that if you make changes of one element on the page web browser have to recalculate position style etc of all existing elements on the page. At least the web browser have to verify all elements whether there need be changed. One names such procedure web browser reflow. I recommend you to read the answer where I describe the problem more details. In the same way you should try to reduce any loops inloadCompleteorgridCompletewhere you enumerate all rows and make changes in many rows. In the way the performance of the grid will be reduced in many times. If you would use another style of writing the program it will be exactly clean and good to understand as before and it could work much quickly. In the answer for example you could find one real example of such transformation of the code.