I tryed your approach with the following code
jQuery("#editgrid").jqGrid({
url:'autoJSON.php?id=<?php echo $id; ?>',
datatype: "xml",
colNames:['RowID','Asigurator','Specificatii','Persoana', 'Perioada', 'Pret'],
colModel:[
{name:'rowID',index:'rowID', width:60, editable:true},
{name:'idAsigurator',index:'idAsigurator', width:100, editable:true,editoptions:{size:20}},
{name:'specificatii',index:'specificatii', width:200, editable:true,editoptions:{size:20}},
{name:'persoana',index:'persoana', width:300,editable:true,edittype:"select",editoptions:{value:"Persoana juridica:Persoana juridica;Pensionar:Pensionar;Persoana
fizica:Persoana fizica"}},
{name:'perioada',index:'perioada', width:120, align:"right",edittype:"select",editable:true,editoptions:{value:"12 luni:12 luni;6 luni:6 luni"}},
{name:'pret',index:'pret', width:80, align:"right",editable:true,editoptions:{size:20}}
],
xmlReader: {
root:"rows",
row:"row",
page:"page",
total:"total",
records:"records",
repeatitems:false,
id:"rowID"
},
the xml file looks like this
<rows>
<page>1</page>
<total>1</total>
<records>5</records>
−
<row>
<cell>1</cell>
<cell>1</cell>
<cell>1401-1600 cmc</cell>
<cell>Pensionar</cell>
<cell>12 luni</cell>
<cell>155</cell>
</row>
−
<row>
<cell>2</cell>
<cell>1</cell>
<cell>1401-1600 cmc</cell>
<cell>Pensionar</cell>
<cell>12 luni</cell>
<cell>200</cell>
</row>
−
<row>
<cell>3</cell>
<cell>1</cell>
<cell>1401-1600 cmc</cell>
<cell>Pensionar</cell>
<cell>12 luni</cell>
<cell>300</cell>
</row>
−
<row>
<cell>4</cell>
<cell>1</cell>
<cell>1401-1600 cmc</cell>
<cell>Pensionar</cell>
<cell>12 luni</cell>
<cell>400</cell>
</row>
−
<row>
<cell>11</cell>
<cell>1</cell>
<cell>1401-1600 cmc</cell>
<cell>Pensionar</cell>
<cell>12 luni</cell>
<cell>500</cell>
</row>
</rows>
Unfortunatelly when I add the xmlReader option the grid displays only empty rows so can you please tell me what I do wrong
Thanks