Hi,
http://www.guriddo.net/demo/demos/jqgrid/selection/masterdetail/default.php
I’m trying to make a page similar to the example.
For example, I want the data to come according to the CompanyName and ContactName values, not the ID value of the selected row. Is there an example for this?
When I click on a row from the main table that I want to do, the related records in the detail table are displayed according to the data of two separate cells in the selected row.
Also in another problem on detail.php page
$rowid = jqGridUtils :: GetParam (“CustomerID”);
It is not possible to use the variable name $rowid with a different name. The query will not work.
example 1: it works.
$rowid = jqGridUtils :: GetParam (“CustomerID”);
$grid-> setColModel (null, array (&$rowid));
example 2: it works.
interesting but even if you give a null value it still handles the $rowid variable. why?
$rowidnull=””;
$rowid = jqGridUtils :: GetParam (“CustomerID”);
$grid-> setColModel (null, array ($rowidnull));
example 3: it not works.
$rowidno = jqGridUtils :: GetParam (“CustomerID”);
$grid-> setColModel (null, array (&$rowidno));
On the normal running example I just changed the variable name $rowid to $rowidno. it needs to work but why doesn’t it work?
does not give an error, only the table data is not coming.
why does the variable name have to be $rowid?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top