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
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:
try to find the Q & A of: How can i get IDs or Data of the selected rows of grid?
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>
Is this feature available in the free version or is this a premium only feature?