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
Printing a table long more than 1 page
19/05/2009
11:33
Avatar
hitman
Member
Members
Forum Posts: 3
Member Since:
19/05/2009
sp_UserOfflineSmall Offline

Hello,

first: sorry for my english

second: THE PROBLEM IS…i have an html page with a jqgrid table long more than a normal A4 page. If i do the printing preview, i see the trouble:FIRST PAGE is with table header but without rows, and second page works correctly. (the trouble is the same also for the table printend on the paper)

This bug is in IE and Firefox both.

On my firefox i have installed “Web developer” plug in, so i tried to play disabling css. At the end of the fable: on the printing preview, i can see all the rows correctly on every page ( but obviously without the right alignment of the colums with columns header) ONLY IF I DISABLE “INLINE STYLES“.

So what can do a poor man to print correctly a more-than-a-page long table?

Inline style can not be simply disabled by javascript or jquery…and however there are columns alignment problems.

Help me please

Thanks. Bye

20/05/2009
09:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

jqGrid represent the data to the user and not to the printer.

In order to print the grid data correct I suggest you to make your own procedure to extract all the needed grid data, (maybe you can use getDataIDs and getRowData)  build simple table and put this data in the table. Also you can style this table in a way that is good for printing.

Regards

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.

20/05/2009
11:55
Avatar
hitman
Member
Members
Forum Posts: 3
Member Since:
19/05/2009
sp_UserOfflineSmall Offline
22/05/2009
05:48
Avatar
andthereitgoes
Member
Members
Forum Posts: 18
Member Since:
19/05/2009
sp_UserOfflineSmall Offline

dont cry buddy. you can use a simple export function to extract data from the grid using getDataIds and getRowData

you can then collate the data using jquery and send it to the server if you want or just present it as an html.

eg:

data=jQuery(listId).getRowData(ids[i])
html=html+data[colNames[j]]

voila.

26/05/2009
04:31
Avatar
hitman
Member
Members
Forum Posts: 3
Member Since:
19/05/2009
sp_UserOfflineSmall Offline

Is not so simple as you say, cause when i have a long list of rows, on the screen the original table is sectioned on several pages. But when i click over the print button, i open e pop-up window where i can see the entire table in a unique section.

(And i'm stubborn! damn! i want understand why on 1 page long table it is all ok and that if i have longer table , it does not works)

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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