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 print a jqGrid
01/07/2010
12:31
Avatar
kribot
Member
Members
Forum Posts: 11
Member Since:
11/05/2010
sp_UserOfflineSmall Offline

Hello,

I need to print a jqGrid result, I'm trying to use jqPrint but the result is kind of messy, I don't have my array correctly rendered nor the column size etc... Do you have any idea how I can do that ? Or if there's any other plugin to do that ?

Best regards,

Kevin

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

Hi!

There are no perfect way to print a jqGrid. Some information which can help you you can find in http://stackoverflow.com/quest.....69#2962569.

Best regards
Oleg 

01/07/2010
17:39
Avatar
kribot
Member
Members
Forum Posts: 11
Member Since:
11/05/2010
sp_UserOfflineSmall Offline

Thanks ! It's ok now 🙂

07/07/2010
15:18
Avatar
kribot
Member
Members
Forum Posts: 11
Member Since:
11/05/2010
sp_UserOfflineSmall Offline

Hello,

It's strange it seems I got a regression, it now prints only the viewable rows, not the entire table, any idea ?

Best regards,

Kevin

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

You should post a code example which reproduce the problem. Moreover I don't really understand your last remark. jqPrint how I know help only to print a part of page and make no changes in the code. So you are really print only what you see. If you use paging in the jqGrid and want to print all rows you have to display all rows before printing.

07/07/2010
16:20
Avatar
kribot
Member
Members
Forum Posts: 11
Member Since:
11/05/2010
sp_UserOfflineSmall Offline

Hello,

Thanks for your answer, what I want to do is print all my grid, but indeed I only view something like 20 records (and I don't want to show more records). What I can do to get this result ?

I'm quite new to jquery and other stuff, I see somewhere that I can print to an iframe ? didn't get exactly the way to do that.

Kevin

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

If you create a jqGrid you define parameters rowNum and rowList. Default value of rowNum is 20 (see /jqgridwiki/doku.php?id=wiki:options). Typically you use a small value for rowNum and give user possibility (see pager at the bottom of the grid) to choose other number of rows to display for example rowList: [10, 20, 50, 1000]. After the user choose a large enough number of rows to display all the rows can be printed.

Another my answer http://stackoverflow.com/questions/3056182/best-way-to-change-jqgrid-rownum-from-all-to-1-before-pass-to-a-web-service/3057484#3057484 could be also interesting for you.

Regards
Oleg 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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