Hi,
I want to use multiple tab grid, but after 5. grid, I get “max_user_connections” error. I suppose it is because loading all grids at once. How can I load grids after tab title clicked?
If you want to load on tab click, you need to set grid hidden by default:
$opt[“hiddengrid”] = true;
$grid->set_options($opt);
and on click invoke display:
<li><a href=”#tabs-2″ onclick=”$(‘#gview_list2 .ui-jqgrid-titlebar-close span.ui-icon-circle-triangle-s’).click();”>Grid Secondary</a></li>
Demo: http://phpgrid.org/demo/demos/master-detail/multiple-tab-grids.php
Code: http://phpgrid.org/demo/demos/master-detail/multiple-tab-grids.phps
Thanks, but now I’m having problem with dropdown list filled from database. Can I load dropdowns on click?
There is no such function to load dropdown on click. You can review this link to get rid of max_connection error:
https://dba.stackexchange.com/questions/47131/how-to-get-rid-of-maximum-user-connections-error