Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
How to bind two detail grid with onselectRow
16/03/2013
13:14
Avatar
leerickx
brussels
Member
Members
Forum Posts: 9
Member Since:
18/02/2013
sp_UserOfflineSmall Offline

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.

17/03/2013
19:59
Avatar
leerickx
brussels
Member
Members
Forum Posts: 9
Member Since:
18/02/2013
sp_UserOfflineSmall Offline

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');

}

},

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information