passing data to laravel view instead of rendered grid

Questionspassing data to laravel view instead of rendered grid
glb asked 1 month ago

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
Abu answered 1 month ago


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

13 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?