Selected Row data on next page

QuestionsSelected Row data on next page
Haseeb asked 10 years ago

I want to use data of selected row on next php page. How is it possible?

5 Answers
Abu Ghufran answered 10 years ago

Pasting from FAQ,

Q) I need send POST with checked row to another file.

You can have this work in javascript.

// returns null if no row is selected OR id of row (single row)
var selr = jQuery('#list1').jqGrid('getGridParam','selrow');

// return array of id's of the selected rows when multiselect options is true. Empty array if not selection
var selr = jQuery('#list1').jqGrid('getGridParam','selarrrow');

You can get selected IDs from above functions (where list1 is grid ID) and pass to other page using JS code.

Oscar answered 10 years ago

Sorry for my question but… can I see an example?
Should be something like:
var selr = jQuery('#list1').jqGrid('getGridParam','selrow');
window.location = "page2.php?" + valueID

Thanks

Abu Ghufran answered 10 years ago

Emailng you a sample file

custom-edit-form.php

Ramiro answered 10 years ago

Abu, can you send me the same sample file please?

Abu Ghufran answered 10 years ago

Here is the demo code:

http://pastebin.com/m0PJYqkE

Your Answer

6 + 15 =

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?