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_Related Related Topics sp_TopicIcon
Multiselect, get the selected rows by value,not by id
28/04/2012
18:29
Avatar
johannesynt
Member
Members
Forum Posts: 4
Member Since:
14/04/2012
sp_UserOfflineSmall Offline

When I set MULTISELECT:TRUE, I can select some rows.

If I want obtain the selected rows, I can write:

$my_array=$("#jqgrd_id").getGridParam(?selarrrow');

which will return an array with the ID of the selected rows.

My problem is: 
I want to save in the array others value, NOT the id's. For example, here:

http://www.secondpersonplural......0fb79d.htm

can I save in the array THE AMOUNT of the selected rows,
my_array=[600.00 , 200.00]..?? thanks
09/05/2012
16:11
Avatar
brandonkirsch
Ohio
Member
Members
Forum Posts: 9
Member Since:
27/04/2012
sp_UserOfflineSmall Offline

Have you tried $.jqGrid('getRowData', rowID)?  That is supposed to return all of the values for any row by its ID.  You could call it in a loop (once for each row that is selected) to retrieve the rest of the row data.

However, a problem I am currently struggling with happens when Inline Editing or Form Editing has been enabled — instead of getting back the values that you want, you get back strings of HTML for all of the inputs that the grid has built.

14/05/2012
19:29
Avatar
johannesynt
Member
Members
Forum Posts: 4
Member Since:
14/04/2012
sp_UserOfflineSmall Offline

thanks

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
33 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