Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dikky on Aug 05, 2009 01:22
open dhtmlx forum
how to refresh grid content with field reference in detail table (master-detail) without refresh pageb

Dear Support Team

If i have master-detail table form. Detail is using dhtmlx grid and dhtmlxconnector.
Detail have foreign-key to the master table.
How i refresh content of detail table without refresh page when the master table move to next record?



Best Regards,
Dikky
Answer posted by dhxSupport on Aug 05, 2009 02:05
You can catch "onRowSelect" event form the master table and then refresh datail table:
master_table.attachEvent("onRowSelect",function(rowId,cellIndex){
   detail_table.clearAll();//clear all rows in datail table
   detail_table.load("grid.php?table="+rowId);//load new records in detail table
})
Answer posted by Dikky on Aug 05, 2009 02:30
Dear Support Team

thank you very much .... very2 helpful

best regards,
Dikky