Reload Detail Grid structure on clicking Master grid

QuestionsCategory: How TosReload Detail Grid structure on clicking Master grid
abdelilah dourhmani asked 1 year ago

Hi there,

I have a list of tables in Master, each with a different table structure. However, my details always seem to be displaying the structure of the first table.

Is there any solution to reload the Details structure when I click on it?

Thank you.

example:

Master:

table1

table2

table3

Details:

table1.col1   table1.col2

when i click to table2 the details didn’t change

5 Answers
Abu Ghufran Staff answered 1 year ago

Please share code and screenshot for review.

I’m unable to understand the issue.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
abdelilah answered 1 year ago

Master Details grid
code part:
master code

master code
detail code

Abu Ghufran Staff answered 1 year ago

I’ve prepared a demo for you to show how to load detail grid via ajax call.

https://gist.github.com/gridphp/c85ee8db525ae46de40b118718fca241

Line 38: Load detail grid via ajax call and passing master grid selected row data

Line 87: Div that holds detail grid

Screenshot:

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
abdelilah answered 1 year ago

Thank you that’s work 🙂

c3media answered 1 year ago

Hello Abu,

Is it possible to integrate this to WordPress, may you to share a demo?

Abu Ghufran Staff replied 12 months ago

I’ve not tested this ajax call grid loading on wordpress but yes it’s doable as you can see in the code. May need some playground.

Your Answer

16 + 9 =

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?