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
retrieving data with multiselect
18/03/2009
08:09
Avatar
missa
france
Member
Members
Forum Posts: 104
Member Since:
20/02/2009
sp_UserOfflineSmall Offline

Hello,

How can I Retrive data from different row which are selected by multiselect?

For example, with an "alert", how can I visualize row data! and not only the rowid of the row!!!

Thank you for your help!

Aurore

18/03/2009
09:04
Avatar
missa
france
Member
Members
Forum Posts: 104
Member Since:
20/02/2009
sp_UserOfflineSmall Offline

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

19/03/2009
05:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

19/03/2009
08:55
Avatar
missa
france
Member
Members
Forum Posts: 104
Member Since:
20/02/2009
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information