4 Apr 2008 2:42 PM #1
I'm happy to announce the first release of my (first) Ext JS extension.
Here are the facts:
Easily build printer friendly layouts and grids for your Ext JS pages.
Works for Ext JS 3.3.0.
(Previous versions were also supported, check the commit logs, to get older versions that work with Ext JS 2.0 - 3.2.1.)
- Builds a normal html table (Ext.ux.PrinterGridPanel) based on your data store and column model, which saves a lot of cpu power and memory when printing large data sets. Moreover it shows all rows. (Remember, you can't use ext's pagination or scrolling on paper. ;-))
- Remembers the state of your grid, such as that hidden columns stay hidden in printer friendly view, keep their column order and keep the row sorting. (This is not really a feature of this extension, it just uses the fabulous Ext.state.Manager, but I think it's important to mention, since this was an important requirement for me.)
- Enables easy debugging of your printer-friendly layout (just add ?format=printerfriendly to your page url to see printer friendly view)
- Enables adding your custom stylesheet for your printer-friendly format
- Grouping View and Store support (New)
If you don't have git, you can download the zip or tar file of the latest version from:
See examples folder in root of the repository.
Any Feedback via comments on this post in this forum or in my blog is welcome!
I hope you find this extension as useful as I do! :-D
4 Apr 2008 6:56 PM #2
Looks very useful, but doesnt work on safari
4 Apr 2008 7:36 PM #3
4 Apr 2008 9:24 PM #4
This is a nice idea. Pure HTML rendering is also helpful in SEO caching strategies, which of course is a gaping hole in fully rendered Ext pages. As of right now you need to manually create redundant stupid/simple landing pages for everything that you want cached by the search engines. Saying goodbye to this equals a good thing.
4 Apr 2008 11:11 PM #5
even though SEO would be a good side effect of this extension, I don't think that this extension is actually more SE-friendly. The difference between my PrinterGridPanel class and the official GridPanel class is "only" that the rendering process is less cpu and memory intensive and that the generated html is smaller than with the normal GridPanel.
So if you want to do SE-optimized landing pages, I think you still would have to do extra server-side coding.
Sorry on disappointing you on that part, or do I look at this the wrong way?
4 Apr 2008 11:57 PM #6
The thee current and not very good choices:
* Simple Web 1.0 site which is SEO cacheable and steadily lose customers to Web 2.0 sites (not an option)
* Fully JS rendered Web 2.0 site which is not SEO cacheable and wait on laurels for the SEs to improve (not an option)
* Double programming (not an option)
5 Apr 2008 3:43 AM #7
... a very interesting extension.
'PrinterView's are a very usefull feature. I look forward to see more about this ;-)
5 Apr 2008 10:42 AM #8
8 Apr 2008 3:06 AM #9
I'm trying the example provided, and I've seen that if you increase the items of the array it does not print more than one page, is there a way to print more than one page? I've got a huge grid and i'd like to be able to print it, I need at least 3pages to print it
8 Apr 2008 5:16 AM #10
By Cedric_K in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 12 Oct 2010, 1:57 PM