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
How to get all grid data from clientArray?
18/05/2010
16:07
Avatar
jcd92410
New Member
Members
Forum Posts: 2
Member Since:
18/05/2010
sp_UserOfflineSmall Offline

Hello,

That should be straightforward but I cannot find out how to get all data from clientArray.

I use line-edit and save the data in the grid clientArray. At the end I need to extract the Grid data in xml or json format

and to send the data to the server for database writing.

Thank you in advance for any suggestion, an huge apologizes for taking yr time

JCD

19/05/2010
10:17
Avatar
BePartners
New Member
Members
Forum Posts: 2
Member Since:
18/05/2010
sp_UserOfflineSmall Offline
var myIDs = $( _ID_filegrid ).jqGrid( 'getDataIDs' );
for( var i = 0; i < myIDs.length; i++ ) {
    var myRow = $( _ID_filegrid ).jqGrid( 'getRowData', myIDs[ i ] );
    // DO YOUR STUFF HERE
    ...
}
24/05/2010
17:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Or better one, call getRowData without param and you will have all the data at once (see getRowData):

http://www.trirand.com/jqgridw.....ki:methods

Tony

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.

22/09/2010
16:27
Avatar
Lancer
Member
Members
Forum Posts: 3
Member Since:
22/09/2010
sp_UserOfflineSmall Offline

tony said:

Hello,

Or better one, call getRowData without param and you will have all the data at once (see getRowData):

http://www.trirand.com/jqgridw.....ki:methods

Tony


When debugging the rows obtained by the method "getRowData" I do not know which rows
have been added, updated or deleted. How I can know the status of a line using the option clientArray?

Thanks

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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