Page 1 of 4 123 ... LastLast
Results 1 to 10 of 121

Thread: ExtJS 4: Grid Printer Plugin

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    191
    Vote Rating
    64
      3  

    Post ExtJS 4: Grid Printer Plugin

    Hi,

    I ported GridPrinter plugin to ExtJS 4.
    This plugin was originally written by Ed Spencer.

    Code: https://github.com/loiane/extjs4-ux-gridprinter
    Demo: http://loianegroner.com/extjs/exampl...x-gridprinter/
    Blog post: http://loianegroner.com/2011/09/extj...printer-plugin
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

  2. #2
    Sencha User crysfel's Avatar
    Join Date
    Feb 2008
    Location
    New York, USA
    Posts
    218
    Vote Rating
    9
      0  

    Default

    This is great, I was planing on porting this plugin to ext4 but you did it!

    Thanks for share.

  3. #3
    Sencha User
    Join Date
    Nov 2007
    Posts
    31
    Vote Rating
    0
      0  

    Default

    Thank you! Really missed having this.

  4. #4
    Sencha User
    Join Date
    Sep 2008
    Posts
    107
    Vote Rating
    0
      0  

    Default

    but in case of paging?

  5. #5
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    191
    Vote Rating
    64
      0  

    Default

    Quote Originally Posted by foxmarco View Post
    but in case of paging?
    The plugin will only print what the grid is displaying at the time.
    To print all the records, you have to change the plugin and load all the records into the store, or you can create a server side solution.
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

  6. #6
    Touch Premium Member
    Join Date
    Jun 2008
    Location
    Germany, Dortmund
    Posts
    249
    Vote Rating
    16
      0  

    Default Adding Ext.grid.column.Template support

    Hi Loiane,
    thanks for the migration.

    I like to see that the code quality of migrated extensions is getting better and better and Ext 4 has the possibility to produce same quality with less code ;-)

    Currently Grid Printer does not support TemplateColumns -> XTemplate Exception.

    I added support this way

    Code:
                        Ext.each(columns, function(column) {
                            if (column.dataIndex == key) {
                                // template column support
                                if (column instanceof Ext.grid.column.Template) {
                                    convertedData[key] = column.tpl.apply(item.data);                            
                                } else {
                                    convertedData[key] = column.renderer ? column.renderer(value) : value;
                                }
                            }
                        }, this);
    Cheers Holger

  7. #7
    Touch Premium Member
    Join Date
    May 2010
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Hi Loiane,
    It doesn't look like source code is available on github anymore? Has it been officially added to ExtJS release, and maybe I'm just missing it?

    Thanks!

  8. #8
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    191
    Vote Rating
    64
      0  

    Default

    Quote Originally Posted by mvorpagel View Post
    Hi Loiane,
    It doesn't look like source code is available on github anymore? Has it been officially added to ExtJS release, and maybe I'm just missing it?

    Thanks!
    Hi, the code is still on github.

    https://github.com/loiane/extjs4-ux-gridprinter
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

  9. #9
    Sencha User
    Join Date
    Dec 2010
    Posts
    16
    Vote Rating
    0
      0  

    Default

    I noticed your example page uses 4.0.2 which doesn't have Ext.String.createVarName

    You might want to use 4.1.1

    Great plugin, thanks for keeping it updated!

  10. #10
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    191
    Vote Rating
    64
      0  

    Default added support to Grid Row Numbered plugin

    As requested, added support to Grid Row Numbered plugin.

    https://github.com/loiane/extjs4-ux-gridprinter

    Will continue working to improve the plugin!
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

Page 1 of 4 123 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •