Forum



07:18

14/01/2011

I have attempted to use the master detail feature however it only allows me to map one grid as a child. I will have 3 grids, the main one has a customer list, a second grid will contain internet circuits the customer has from us and the third grid will have phone circuits they have from us. So what I would like is when a customer is selected it then updates the other two grids with circuit and phone number information. I can get this to work with select a customer and see phone information as well as select a customer and see internet circuit information. I cannot however get it to work with both together.
I am using the stock grid.php and have copied the stock detail.php to vlan_detail.php and tdm_detail.php. If I remove vlan_detail.php it shows everything perfect minus vlan_detail.php info. If I remove tdm_detail.php it shows everything perfect. I would like it to show both vlan_detail.php AND tdm_detail.php.
My page looks like this:
<b>Customers</b>
<?php include ("grid.php");?>
</div>
<div>
<b>VLAN Information</b>
<?php include ("vlan_detail.php");?>
<b>TDM Information</b>
<?php include ("tdm_detail.php");?>
UPDATE: I got it to work with the tech support help below..
There is nothing special, but maybe you will need to pay attention on some things:
Considering this example:
http://www.trirand.com/blog/ph.....efault.php
1. you will need to modify the onselect event in MASTER GRID so that it affect both grids
Suppose you have detail1 and detail2 subgrids
function(rowid, selected)
{
if(rowid != null) {
jQuery("#detail1").jqGrid('setGridParam',{postData:{CustomerID:rowid}});
jQuery("#detail1").trigger("reloadGrid");
jQuery("#detail2").trigger("reloadGrid");
}
}
ORDER;
2. When constructing the second grid be a sure that they have different id
for detayl1 grid do this
for detail2 grid
Also don't forget to define the table on the detail pages.
$grid->table = "table name";
Most Users Ever Online: 715
Currently Online:
48 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66