Hi,
I'm uploading files with phpgrid. It works well.
But is it possible to make it in inline mode ?
It doesn't work for me (the cell for the file is not editable ?).
Thanks
Mofel
Hi Abu,
Thanks for your reply.
I need to upload files on a page where i have 3 grids (1 master + 2 details).
The upload file is going on the master.
I would like to keep the two details grids in "inline" edition mode but i need to have the master one for the upload.
The problem is that when i'm adding the lines above, the 3 grids changes from inline to modal.
Is there any way to filter on the grid_id ?
var opts = {
'ondblClickRow': function (id) {
jQuery(this).jqGrid('editGridRow', id, <?php echo json_encode_jsfunc($g->options["edit_options"])?>);
}
};
Thanks
Mofel
For more than one grid on page, you should append grid-id with opts, e.g.:
var opts_list1 = { … };
This will only set options for provided grid id.
Hi Abu,
It doesn't work.
On this demo http://www.phpgrid.org/demo/demos/master-detail/multi-subgrid.php
you can add after the last div:
<script>
var opts_list1 = {
'ondblClickRow': function (id) {
jQuery(this).jqGrid('editGridRow', id, <?php echo json_encode_jsfunc($g->options["edit_options"])?>);
e.stopImmediatePropagation();
}
};
</script>
If you click on any subgrid it opens the modal …
Is there anyway to filter on the grid id ?
Thanks
Morgan
Here is working code.
https://gist.github.com/gridphp/329b0505065d67c00b810f5b65ac173f#file-gistfile1-txt-L54
list1 is grid id, and you need to place this JS before echo $out.