Forum







13:14

18/02/2013

Hello,
I have a master grid who display data in an other grid (fileupload_grid) with onselectRow :
onSelectRow: function(ids) {
if(ids == null) {
ids=0;
if(jQuery("#fileupload_grid").jqGrid('getGridParam','records') >0 )
{
jQuery("#fileupload_grid").jqGrid('setGridParam',{url:"fileupload_grid.php?q=2&id="+ids,page:1});
jQuery("#fileupload_grid").jqGrid('setCaption',"Fiche Projet ID: "+ids)
.trigger('reloadGrid');
}
} else {
jQuery("#fileupload_grid").jqGrid('setGridParam',{url:"fileupload_grid.php?q=2&id="+ids,page:1});
jQuery("#fileupload_grid").jqGrid('setCaption',"Fiche Projet ID: "+ids)
.trigger('reloadGrid');
}
},
I created an other grid datesup_grid
is it possible to add an other grid like datesup_grid in the same function and in the same master ?
Thank you very much.
19:59

18/02/2013

Sorry, it was a stupid question.
onSelectRow: function(ids) {
if(ids == null) {
ids=0;
if(jQuery("#fileupload_grid").jqGrid('getGridParam','records') >0 )
{
jQuery("#fileupload_grid").jqGrid('setGridParam',{url:"fileupload_grid.php?q=2&id="+ids,page:1});
jQuery("#fileupload_grid").jqGrid('setCaption',"Fiche Projet ID: "+ids)
.trigger('reloadGrid');
}
} else {
jQuery("#fileupload_grid").jqGrid('setGridParam',{url:"fileupload_grid.php?q=2&id="+ids,page:1});
jQuery("#fileupload_grid").jqGrid('setCaption',"UPLOAD DE FICHIERS - Fiche Projet ID: "+ids)
.trigger('reloadGrid');
}
if(ids == null) {
ids=0;
if(jQuery("#datesup_grid").jqGrid('getGridParam','records') >0 )
{
jQuery("#datesup_grid").jqGrid('setGridParam',{url:"datesup_grid.php?q=3&id="+ids,page:1});
jQuery("#datesup_grid").jqGrid('setCaption',"Fiche Projet ID: "+ids)
.trigger('reloadGrid');
}
} else {
jQuery("#datesup_grid").jqGrid('setGridParam',{url:"datesup_grid.php?q=3&id="+ids,page:1});
jQuery("#datesup_grid").jqGrid('setCaption',"DATES SUPPLEMENTAIRES - Fiche Projet ID: "+ids)
.trigger('reloadGrid');
}
},
Most Users Ever Online: 715
Currently Online:
79 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