Hi, How can I make an array (that contains all the data of a single row of the grid) available in a Laravel view ? Through a custom row button, I need to send to another Laravel view, not the renderd output grid but only an array of data Thanks
1 Answers
Hi,
You can get certain row in javascript not in php. After getting in javascript, you can pass it to some php page using querystring.
e.g. where list1 is grid id.
var sel = jQuery('#list1').jqGrid('getGridParam','selrow');
var row = $('#list1').getRowData(sel);
// Sample row data output is:
{invid:"1", invdate:"2007-10-01", note:"note", amount:"200.00", tax:"10.00", total:"210.00"};
Your Answer