Is it possible to show diffrerent phpgrid pages in tabs of a page?

QuestionsIs it possible to show diffrerent phpgrid pages in tabs of a page?
toki asked 8 years ago

Hi Abu,

Is it possible to show three diffrerent phpgrid pages in tabs of a page?

Regards…

4 Answers
Abu Ghufran answered 8 years ago

Please refer master-detail/multiple-grids.php in which multiple grids are shown on a page.
Then you can put any div based tab lib and put them accordingly.

toki answered 8 years ago

Hi Abu,

I try to learn whether is it possible to load three different phpgrid pages in tabs of another page ? e.g.include("phpgrid1.php"),include("phpgrid2.php"),include("phpgrid3.php") Can we put them any div based tab lib and put them accordingly?

Why I am asking because , I already define and columns in phpgrid.php pages therefore I do not want to define and add columns again in new page.

Thanks and regards…

Abu Ghufran answered 8 years ago

Yes this is doable. You need to remove the HTML part (css/js) from each file, and put them in main (tabbed) html file one time.

Replace $out = $grid->render(); to $out1, $out2, $out3 in each file respectively.

and then in div elements of main html, echo these vars.

toki answered 8 years ago

Hi Abu,

Thank you very much for your helping suggestions.

Your Answer

3 + 12 =

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?