jqgrid append rows from xml -


I am using a grid which has editurl: "clientArray", datatype: 'xmlstring', datastr: '& gt;

I have a button in my page, and when I click it, I call an AJAX call and receive an XML new row which I want to add to my grid.

'Pipes through Xml rows and using addRowData for each line

My question is how can these rows add to the current grid? I still want the rows in the grid and want to include them in new lines from the XML.

Thanks in advance.

For example, you can create an array of data with new lines. You can add all the lines in a call to addRowData (read more about the different parameters of the addRowData ).

The things will be easier if you will return JSON data to the server instead of XML. This is recommended for most situations then you add addRowData to one call . Alternatively, you may need to use a small customization of local reader (see for more information)

Comments