hi all,
I modified the “setPrintGrid” function a bit.
mah,
Issue #1 does not occur in my tests.
Here is the jqgrid screen.

Here is an image of a work order grid printout with subgrids.

Also, preceding the “table, th and td” css entries in the “print-grid.css” file in the original post with “#prt-container” should eliminate any problems with the css entries interfering with other tables.
No problem…
I'm sure someone can probably streamline the process a bit and make it a little more flexable.
On a side note…
I realized that the “print-grid.css” file should not contain the “.hide” css entry.
Unfortunetly, i ended up trashing my custom form.
Never mind… I got it.
$('#City' ).css('border', 'none'); in “beforeShowForm” event.
in case anyone cares…
Hello Tony,
I don't expect you to respond to this post since it is not DIRECTLY related to jqGRID.
In any case, i don't think jqGRID has a library or method for creating stylized custom forms.
i have run into this problem several times.
Thanks for the suggestion Tony.
However, i realized i could simply add the “beforeSubmit” event to the add and edit navgrid to insert the required data into the post array.
Never mind, i figured it out…
I added an 'afterSubmit' event to the edit form of the state grid to test for and insert/remove the necessary select option from the work order add form's state select box.
// state table grid
, afterSubmit: updateStateSelect}, // edit options.
.
.
.
// javascript event.
While i sympathize in that the doc's are not very easy to read and do not provide enough clear examples… The author of jqGrid nor forum users are not here to teach you general programming.
While i did not study the posted code, i have found that in my experence with jqGrid,
getting stuck on “loading” was either a jqgrid coding error or an error in my php script and not a bug in jqgrid.
Try commenting out sections of the jqgrid code and/or temporarally hard coding a vaiid
response from the php script.
jqGrid does not do calculations on data, it just creates tables and forms.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top