Forum


09:04

20/02/2009

Sorry, but I rephrase my question?!
when we use " jQuery("#client").getGridParam('selarrrow')" normally It returns an array with the selected rows.The values in array are the id's of the selected rows
the rowid of my grid is defined as below:
rows[$i]'rowid']=array($row['num_factur'],$row['cod_etafac'],$row['cod_typfac'],$row['dat_annee'])
Why the result of my request is the row num and not the complete rowid as describe before?!
thank you for your help!!
Aurore
05:21

Moderators
30/10/2007

HEllo,
myrows = $("#mygrid").getGridParam('selarrrow');
for(var i = 0;i<myrows.length;i++){
currrowdata = $("#mygrid").getRowData(myrows[i]);
should I finish the rest ?
....
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
08:55

20/02/2009

Hello Tony,
Yhank you for your answer! I find why "getGridParam" doesn't work!
In my php when i create my json, I have an error, I don't know why whith my key!!!
while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
$responce->rows[$i]['id']=array($row['num_factur']);
$responce->rows[$i]['cell']=array(..);
$i++;
}
Before, I replace id by rowid and I my programm nothing work!! And now, all work!
thank you for all!!
Regards,
Aurore
Most Users Ever Online: 715
Currently Online:
23 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