Forum

May 22nd, 2014
A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
How to print a jqGrid
01/07/2010
12:31
kribot
Member
Forum Posts: 11
Member Since:
11/05/2010
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
OlegK
Germany
Member
Forum Posts: 1219
Member Since:
10/08/2009
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
kribot
Member
Forum Posts: 11
Member Since:
11/05/2010
Offline

Thanks ! It's ok now :-)

07/07/2010
15:18
kribot
Member
Forum Posts: 11
Member Since:
11/05/2010
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
OlegK
Germany
Member
Forum Posts: 1219
Member Since:
10/08/2009
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
kribot
Member
Forum Posts: 11
Member Since:
11/05/2010
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
OlegK
Germany
Member
Forum Posts: 1219
Member Since:
10/08/2009
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: 215

Currently Online:
46 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1219

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11243

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10447

Posts: 30878

Newest Members: JoHansen, manjunathmaski, blgsyrmhnds, toadicusrex, re-gor, NoSalt

Moderators: tony (7580), Rumen[Trirand] (81)

Administrators: admin (61)

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information