Hi Abu,
How can we extract the Last Record or Last Row from the GRID?
Any workaround for this.
Regards
Chandru
3 Answers
Here is the JS to traverse all grid's data. You can pick last element most likely by data[data.length-1]["gender"]
var grid = $("#list1");
data = grid.jqGrid('getRowData');
for (var x=0;x<data.length;x++)
{
alert(data[x]["gender"]);
}
It can be done in free version. Jquery accessing is part of base lib of jqgrid.
You can refer following link for complete JS api.
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jqgriddocs
Your Answer