Popup and display info

QuestionsPopup and display info
saboteur asked 1 year ago

Hi,

I’m new GRID4PHP but not html, css, javascript etc.

I have a master detail grid but think the detail grid is overkill as it’s only used for showing the ‘long description’ that is linked to the master grid.

Is there a way to show this in a modal/pop up read only form ?

Thanks for any help.

Regards

saboteur

2 Answers
Abu Ghufran Staff answered 12 months ago

Hello,

This is doable by some custom JS code, not internally supported by library.

To do manually, following steps will be required:

  • Add a virtual column to have a link of “show detail” on each row.
  • Connect a js function with that link and pass the row id
  • In the js callback function, you can call a php script passing the row id as querystring
  • Use the modal / popup library code to show the returned response of ajax to show in popup.

If you stuck at some place, you can share the code related files and I can suggest the changes.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 12 months ago

Another option is to use, subgrid:

https://www.gridphp.com/demo/demos/master-detail/subgrid.php

But in subgrid-detail.php, instead of adding grid related code, you can have your own php code.

Which reads the ID from the querystring and print the details.

 

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

13 + 4 =

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?