Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Master Detail with 3 grids
14/01/2011
07:18
Avatar
duntech
New Member
Members
Forum Posts: 1
Member Since:
14/01/2011
sp_UserOfflineSmall Offline

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

$selectorder = <<<ORDER
function(rowid, selected)
{
    if(rowid != null) {
        jQuery("#detail1").jqGrid('setGridParam',{postData:{CustomerID:rowid}});
        jQuery("#detail1").trigger("reloadGrid");

        jQuery("#detail2").jqGrid('setGridParam',{postData:{CustomerID:rowid}});
        jQuery("#detail2").trigger("reloadGrid");

        // Enable CRUD buttons in navigator when a row is selected
    }
}
ORDER;

2. When constructing the second grid be a sure that they have different id

for detayl1 grid do this

$grid->renderGrid("#detail1","#pgdetail1", true, $summaryrow, array(&$rowid), true,true);

for detail2 grid

$grid->renderGrid("#detail2","#pgdetail2", true, $summaryrow, array(&$rowid), true,true);

Also don't forget to define the table on the detail pages.

$grid->table = "table name";

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
37 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information