Sigma Php Ajax framework, Ajax Components, GUI Builder
May 21, 2012, 08:09:17 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Poll
Question: I want to setup a master/detail grid: when clicking on a cell of the master table, the detail grid shows more information about this record. I am retrieving data via PHP. here is the code of index.php:
gooooooooooooooood - 1 (50%)
sympa - 1 (50%)
Total Voters: 2

Pages: [1]
  Print  
Author Topic: Master/detial: detail not reloaded -------------plzzzzz  (Read 1465 times)
sodoko
Newbie
*
Posts: 1


View Profile
« on: July 01, 2010, 03:16:33 AM »


I want to setup a master/detail grid: when clicking on a cell of the master table, the detail grid shows more information about this record. I am retrieving data via PHP. here is the part of my code of index.php:





and here my My DetailsController.php has following code:




The 2 grids show up without any error, but when i click a cell on master grid, the detail grid shows "Please wait" but nothing changes, it isn't updated corresponding to the clicked cell in master grid.

What is wrong with this code?

100000000000 thanks thanks for your help Huh Huh Huh Huh Huh Huh[/font][/b]
« Last Edit: July 02, 2010, 01:50:51 AM by sodoko » Logged
steven
Moderator
Hero Member
*****
Posts: 544



View Profile
« Reply #1 on: July 01, 2010, 04:40:01 AM »

Your script is too long to review.
I suggest you check it with firebug first to see everything back from server side is ok first.
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
prabhuraj
Full Member
***
Posts: 26


View Profile
« Reply #2 on: February 26, 2011, 02:11:13 AM »


hai try this.....


var gridOption={
   id : grid_demo_id,
   width: "700", 
   height: "350",     
   container : 'gridbox',
   replaceContainer : true,
   dataset : dsOption ,
   columns : colsOption ,
   pageSizeList : [5,10,15,20],
   customHead : 'myHead',
   
   onClickCell  : function(value, record , cell, row,  colNO, rowNO,columnObj,grid)
   {
       var master_id = record.order_no;
      var grid=Sigma.$grid(grid_details_id);
      grid.loadURL = "Controller.php?rid=" + master_id + "";
      grid.addParameters({'master_id':master_id});
      grid.reload();
   },
   
   SigmaGridPath : 'grid/',
   loadURL : 'Controller.php',
   parameters:{'rid':"2"},
   defaultRecord : ["","","","",0,0,0,0,"2008-01-01"],
   pageSize:5,
   toolbarContent : 'nav | reload | state',
   
   
};
Logged
cd_gary
Newbie
*
Posts: 2


View Profile
« Reply #3 on: August 06, 2011, 05:57:42 PM »

Did you ever get this issue resolved?


I want to setup a master/detail grid: when clicking on a cell of the master table, the detail grid shows more information about this record. I am retrieving data via PHP. here is the part of my code of index.php:





and here my My DetailsController.php has following code:




The 2 grids show up without any error, but when i click a cell on master grid, the detail grid shows "Please wait" but nothing changes, it isn't updated corresponding to the clicked cell in master grid.

What is wrong with this code?

100000000000 thanks thanks for your help Huh Huh Huh Huh Huh Huh[/font][/b]

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!