Hybrid View

  1. #1
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    183
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      3  

    Post ExtJS 4: Grid Printer Plugin

    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
    crysfel's Avatar
    Join Date
    Feb 2008
    Location
    New York, USA
    Posts
    216
    Vote Rating
    8
    crysfel will become famous soon enough

      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
    zacware is on a distinguished road

      0  

    Default


    Thank you! Really missed having this.

  4. #4
    Sencha User
    Join Date
    Sep 2008
    Posts
    107
    Vote Rating
    0
    foxmarco is on a distinguished road

      0  

    Default


    but in case of paging?

  5. #5
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    183
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      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
    12
    hschaefer123 will become famous soon enough

      0  

    Default Adding Ext.grid.column.Template support

    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
    mvorpagel is on a distinguished road

      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
    183
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      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
    jonasby is on a distinguished road

      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
    183
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      0  

    Default added support to Grid Row Numbered plugin

    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi