File upload in inline mode ?

QuestionsFile upload in inline mode ?
mofel asked 7 years ago

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

5 Answers
Abu Ghufran answered 7 years ago

Hello,

It's still not supported.
Apologies for inconvenience.

mofel answered 7 years ago

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

Abu Ghufran answered 7 years ago

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.

mofel answered 7 years ago

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

Abu Ghufran answered 7 years ago

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.

Your Answer

14 + 0 =

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?