I would like to iterate all over the data contained in grid object. My grid has a definition that include a subgrid object and is created this way
var grid =
OK. In the answer and in this one I describe how to enumerate the grid rows mostly effectively. Probably if you works more with jQuery and not with DOM the code will looks strange for you. I received questions whether it is safe to use the DOM elements? Is it not better to use jQuery instead? So I before all I try to answer on the questions and explain why I think it's the best way. If you have an interest only in the result code and not in the explanation you can skip the part of my answer.
The main idea is that $('#grid')
is a jQuery wrapper to the HTML DOM
element directly by $('#grid')[0].rows[i].cells[j] . If you know only the column name you can examine colModel array and search for the column having the name property which you need. If index in the colModel array is j you can use the index in the $('#grid')[0].rows[i].cells[j] expression.
Important is that In some my old answers I used code jqGrid has 4 types of Now if you have To examine the data from subgrid as grid which you use you can do following In the way you get |