Hello, I’m interested in making a master detail grid / form, with the grid of a list of animals on the first page and the details of the selected animal in the second page.
I’ve read this discussion
http://forum.dhtmlx.com/viewtopic.php?f=22&t=25498&p=81213&hilit=form+second+page#p81213
It’s ok for Dhtmlx touch.
I would like to adapt it to a non touch application.
My code is:
grid.php
....
// -----------------------------------------------------
// ----------------- GRID ANIMALI ----------------------
// -----------------------------------------------------
var mygridAnimali = new dhtmlXGridObject('gridboxAnimali');
mygridAnimali.setImagePath("../dhtmlxSuite/dhtmlxGrid/codebase/imgs/");
mygridAnimali.setHeader("Id Cliente, Specie,Razza");
mygridAnimali.setInitWidths("150, 150, 150")
mygridAnimali.setColAlign("left, left, left")
mygridAnimali.setColTypes("ro,ed,ed");
mygridAnimali.setSkin("dhx_skyblue")
mygridAnimali.enableColumnAutoSize(true);
mygridAnimali.init();
mygridAnimali.loadXML("data-animali.php");
//mygridAnimali.attachEvent("onRowSelect", doOnRowSelected);
var mydp = new dataProcessor ("data-animali.php");
mydp.init(mygridAnimali);
.....
detail.php
[code]
…
How can I link the selected animal to it’s relative details form ?
I think that the “bind” method of the form class doesn’t work between two separate page.