tony said:
Hello,
Instead I will replace the namedItem function. It causes a problems in iOS7 (which i think is a bug in the Safari)
Regards
I had the same problem in IOS 7 with jqGrid. Here is how I solved it. I added this function to the top of jquery.jqGrid.src.js
|
|
<div class="sfcode">function CorrectNamedItem(collection, name) {<br /> var result = null;<br /> $.each(collection, function (index, elem) {<br /> if (elem.id === name || elem.name === name) {<br /> result = elem;<br /> return false;<br /> }<br /> });<br /> <br /> return result;<br /> }<br /> </div> |
Then whenever jqGrid has a call like this:
var ind = ts.rows.namedItem(n);
I changed it into a call like this:
var ind = CorrectNamedItem(ts.rows, n);
Now IOS 7 jqGrid works fine.
I hope this change can be made into jqGrid permanently, since IOS 7 has poor behavior of the inbuilt function namedItem.