Forum
20:20
11/07/2011
cekkinus said:
Sorry for my english. In a configuration master-details table (also in the demo of Trirand site), if i select fastly the row of master, the header title of details is right but the data is the data of selection before....
Regards and compliments.
Andrea
Is not a bug but an normal behavior of one ajax request. im solved therefore:
FOR MASTER:(#contratti)
............
onSelectRow: function(ids) {
valore_contratto=$("#contratti").getCell(ids,'nome_con');
idcontratto=ids;
if (ids == null) {
ids=0;
if (jQuery("#dettagli").jqGrid('getGridParam','records') >0 ) {
jQuery("#dettagli").jqGrid('setGridParam',{url:"json_select_dettagli.php?id="+ids+"&VAL="+valore_contratto,page:1}).trigger('reloadGrid');
}
} else {
jQuery("#dettagli").jqGrid('setGridParam',{url:"json_select_dettagli.php?id="+ids+"&VAL="+valore_contratto,page:1}).trigger('reloadGrid');
............
FOR DETAILS(#dettagli)
loadComplete:function(responce){
jQuery("#dettagli").jqGrid('setCaption',"Dettagli Contratto: "+responce.VAL);
},
.........
IN PHP FILE:
$VAL=$_GET['VAL'];
............
$responce = new stdClass();
$responce->page = $page;
$responce->total = $total_pages;
$responce->records = $count;
$responce->VAL = $VAL;
.............
Most Users Ever Online: 715
Currently Online:
54 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66