Image Preview in edit popup

QuestionsImage Preview in edit popup
Harpreet Singh Sahota asked 9 years ago

I have purchased version of phpgrid, its awesome. But I'm facing a trouble in following functionality:

Previewing image in edit popup: I have made functionality where user able to see image in grid but can edit in popup, but I'm not able to show preview of image in popup, can you please let me know way to do so. Please refer to Image included.

Code I tried to achieve this functionality:

4 Answers
Abu Ghufran answered 9 years ago

Refer demos/editing/file-upload.php.
It uses virtual column to display uploaded file in grid and dialog.

It looks like as it is showing in grid, all you need is to enable it's display in edit dialog.

// only show in listing & image in edit
$col["show"] = array("list"=>true,"edit"=>true,"add"=>false);

Harpreet Singh Sahota answered 9 years ago

Thanks Ghufran, but if you have checked my link which is, I have already tried this code but not working.

Abu Ghufran answered 9 years ago

Changes are made in this code:

Your Answer

8 + 19 =

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?