thanks for all the help. nearly there.
I have it working, its just not putting the results into the grid when searching.
I have checked the output of the php file, and got that part working, but for some reason it just doesnt put the new data in the grid.
jQuery(document).ready(function(){
jQuery(“#list”).jqGrid({
url:’example.php’,
datatype: ‘xml’,
colNames:,
colModel :[
{name:’Ordersums_order_id’,index:’Ordersums_order_id’, width:120},
{name:’Ordersums_time’,index:’Ordersums_time’, width:150},
{name:’Ordersums_surname’,index:’Ordersums_surname’, width:150, align:’right’},
{name:’Ordersums_postcode’,index:’Ordersums_postcode’, width:80, align:’right’},
{name:’Ordersums_subtotal’,index:’Ordersums_subtotal’, width:80,align:’right’},
{name:’Ordersums_status’,index:’Ordersums_status’, width:150, sortable:false} ],
pager: jQuery(‘#pager’),
height: 550,
rowNum:20,
rowList:[10,20,30,40,50,100],
sortname: ‘Ordersums_order_id’,
sortorder: “desc”,
viewrecords: true,
imgpath: ‘themes/basic/images’,
multiselect: true ,
caption: ‘Orders’,
subGrid: true,
editurl: ‘example.php’,
subGridUrl : “grid-orderdetail.php”,
subGridModel : [ {
name: ,
width : [55,200,80,80,80,80,80,80],
params: }
]
});
$(“#bsdata”).click(function(){
jQuery(“#list”).searchGrid( {modal:true} );
});
});