Row information

QuestionsRow information
Scott Pratt asked 7 years ago

How can I get row information when I click a cell to select a row?

Note: I don't want to add an html button and attach a function to the button. I want to attach code to the event that selects the row when I click it (if you could tell me what event that is and how to catch it, that would be a good start)

Thanks

4 Answers
Agust answered 7 years ago

About events on jqGrid, I found this page:
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events&s%5B%5D=event

You can pay attention to onSelectRow event and define a javascript function for this event.

About the selected row information, read this:

How-Tos & FAQs

try to find the Q & A of: How can i get IDs or Data of the selected rows of grid?

Abu Ghufran answered 7 years ago

Agust is correct, you can see faqs. And just to catch the on_select_row event, please refer custom-events.php example.

$e["js_on_select_row"] = "do_onselect";

$grid->set_events($e);

<script>
function do_onselect(id)
{
var rd = jQuery('#list1').jqGrid('getCell', id, 'company'); // where invdate is column name
jQuery("#span_extra").html(rd);
}
</script>

Kristopher Baker answered 7 years ago

Is this feature available in the free version or is this a premium only feature?

Abu Ghufran answered 7 years ago

Yes, currently it's in latest build of paid version.
I saw that you just acquired it, It should work as expected.

let me know in case of any issue.

Thanks

Your Answer

1 + 12 =

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 / 5. Vote count:

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

Let us improve this post!