Forum
11:33
19/05/2009
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
09:40
Moderators
30/10/2007
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.
05:48
19/05/2009
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.
04:31
19/05/2009
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)
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66