OnSelectRow load second grid

Hi
How can I place the event handler doOnRowSelected, so we change the contenu of second grid based on the key rowID

var mygridF = MyLout.cells(“a”).attachGrid();
var mygridP = MyLout.cells(“b”).attachGrid();



mygridF.attachEvent(“onRowSelect”,doOnRowSelected);
mygridF.init();


I want trasmit the rowID as a paramter to the second grid, of course the second grid must be changed:

mygridP.loadXML(“sous_famille_produitt_server_side.php?idf=”+rowID);

hi

I respond myself, below the response :smiley:
i create an event attached on the first grid, in this event i place the hole code which generate the second grid
of course i pass the rowid as a parameter

thanks

You may also use the following logic:

[code]grid1.MyLout.cells(“a”).attachGrid();
// … other configuration methods
grid1.init();
grid1.load(data)

grid2.MyLout.cells(“b”).attachGrid();
// … other configuration methods
grid2.init();

grid1.attachEvent(“onRowSelect”, function(id,ind){
grid2.clearAll();
grid2.load((“sous_famille_produitt_server_side.php?idf=”+id):wink:
});[/code]