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
How to get total records from server?
07/07/2010
11:25
Avatar
ivanchain
Member
Members
Forum Posts: 55
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

Hi,

in the recordstext option 's {2} para, it shows the total records number from the server.

But I can't see any options to GET the value, so how to get the value from out of the jqgrid?

I try the:

var recordtext =grid.getGridParam("recordtext");

but it only show the "View {0} - {1} of {2}"  string itself!

How I get the value of the {2} para?

It's usefull to get this value, because we need to use the TOTAL records value to caculate somthing out side the jqgird.

Now I only can see it showed in the jqgrid, but no way to get it.

yours,

Ivan

07/07/2010
13:32
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Try grid.getGridParam("records");

07/07/2010
14:02
Avatar
ivanchain
Member
Members
Forum Posts: 55
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

Try grid.getGridParam("records");

--------------------

grid.getGridParam("records");

that's the records, not the Total records.

yours,

Ivan

07/07/2010
14:42
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

You are wrong.

grid.getGridParam("reccount") returns the count of rows currently displayed in the grid and  grid.getGridParam("records") returns the total count of rows.

Regards
Oleg 

07/07/2010
16:27
Avatar
ivanchain
Member
Members
Forum Posts: 55
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

Yes, I am wrong.

Sorry.

Thank you very much!

yours,

Ivan

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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