I'm having a bear of a time getting the grid to display properly online and in print.
Does anyone have examples of an accessible, CSS-driven ultrawebgrid layout that uses % for column and FrameStyle widths along with an associated print stylesheet?
--Andrea
Andrea - there's a readonly mode for the grid which can be used for better printing support. The grid relies on a whole tangle of specially positioned divs, etc. which don't really translate to a print document very well. IE7 has much better support for printing, but it's still not the best. If you set the grid.DisplayLayout.ReadOnly=LevelThree, the grid will render with much less HTML and JavaScript and will give you better results in setting a specific print stylesheet. BTW, the grid already sets some rules up for a @media print, so you'll want to be sure your settings aren't being overridden.
http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/WebGrid_Set_the_Level_of_WebGrids_Read_Only_Mode.html
Good Afternoon Tony,
Thanks for your quick response. That's neat functionality.
Is there a way to toggle that mode (or otherwise revert to the mode's grid settings) only when printing?
We need to be able to give a specific vertical height to the grids, stretch columns manually to reveal data, and mouse over hidden colun data to display tooltips. All this is lost with ReadOnly = PrinterFriendly.
How are you handling print styles on your complex grids?
Also, is there detailed documentation about what divs, etc the grids produce -- and what can/can't be maniulated with CSS? We're very thirsty for some best practices related to CSS styling.
All my best,