1. #21
    Ext User
    Join Date
    Mar 2008
    Posts
    2
    Vote Rating
    0
    miakamayani is on a distinguished road

      0  

    Default


    Hi! I am newbie in ExtJs :p adn found that this extension is very useful. How to make the Printer Preview window just contain the grid, not the entire page and what configuration do I have to do to customize the Printer Preview window so it's not maximized. Thank you so much

  2. #22
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    770
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    Quote Originally Posted by miakamayani View Post
    Hi! I am newbie in ExtJs :p adn found that this extension is very useful. How to make the Printer Preview window just contain the grid, not the entire page and what configuration do I have to do to customize the Printer Preview window so it's not maximized. Thank you so much
    Hi miakamayani,
    in the example you could replace the panel code with the following:

    Code:
      new Ext.Panel({
        renderTo: "body",
        layout: "fit",
        border: false,
        bodyBorder: false,
        items: 
            new Ext.ux.grid.PrinterGridPanel({
                store: store,
                columns: columns,
                stateId: 'array-grid',
                autoExpandColumn: 'company',
                title: 'Array Grid'
            })
      });
    and also remove the <div id="description">... code in the html file.

    Right now it's not possible to prevent the maximization of the printer window via a config option. If you know how you could extend the class. Or you wait until next week, I'll add that as an option in the next release. ;-)

  3. #23
    Ext JS Premium Member
    Join Date
    Jan 2008
    Location
    España
    Posts
    215
    Vote Rating
    0
    vizcano is on a distinguished road

      0  

    Default


    Thank you for the new version I'm trying it right now

    Id like to ask you if your printer module is able to print grids like this: http://extjs.com/deploy/dev/examples/grid/grouping.html

    Because when i set the view

    Code:
    var view1= new Ext.grid.GroupingView({
                forceFit:true,
                groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
            });
    In to my PrinterGridPanel it renders OK, but don't work properly, I send you a screenshot of the view and an example of the printed page.

    Thanks so much
    Attached Images
    Attached Files

  4. #24
    Ext JS Premium Member
    Join Date
    Nov 2007
    Posts
    28
    Vote Rating
    0
    elinu is on a distinguished road

      0  

    Default Printing grid containing RowExpander

    Printing grid containing RowExpander


    Thanks for a very useful extension!
    I was wondering if there is a way of printing a grid containing a RowExpander?
    The first picture shows the table that I want to print with it's rows expanded.
    The second picture shows what is now shown in the print preview when I use the same store and columnModel for the two tables.
    Would be really greatful for any help.
    Attached Images

  5. #25
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    770
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    Hey vizcano and elinu,

    thanks for your good bug reports (or feature requests). RowExpander and GroupingView is unfortunately not supported yet. I'm not sure when I'll be able to add those two features. It would definitely make sense to add them to the extension. For the next release I wanted to concentrate on the "one-click-print" feature.
    I'll be setting up a svn or git repo for this extension to make development and contributing easier. Anybody likes to try to add this feature by himself? ;-)
    Otherwise I'm afraid to say that you might have to wait 2-3 weeks...

    Sorry for this not so good answer...

    Regards,
    Steffen

  6. #26
    Ext User
    Join Date
    Oct 2007
    Posts
    67
    Vote Rating
    0
    BigTitus is on a distinguished road

      0  

    Post onPrinting is never be called

    onPrinting is never be called


    Hi Steffen,

    thanks for this extension, it's exactly what I was looking for.
    But I am facing one problem: After I was running your test case without any problems I tried to build your extension into my app. The preview window appears but no grid is shown. Tracking that down it shows that "onPrinting" will not be called. Any idea what could be the reason for that?

    Thanks in advance for your help!
    BT

  7. #27
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    770
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    Hi BigTitus,

    are you sure that onPrinting is not getting called? Did you test it with alert() or console.info() (firefug will not display this in your console, you have to use parent.console.info() instead or
    open your printerfriendly page in your browser directly by adding the _format=printerfriendly parameter to your query string.)

    Let me know if that helps ...

    Regards,
    Steffen

  8. #28
    Ext User
    Join Date
    Oct 2007
    Posts
    67
    Vote Rating
    0
    BigTitus is on a distinguished road

      0  

    Default


    Thanks for your answer! Meanwhile I figured out how your extension is working and I found that it could not work in my app because my grid is loaded by ajax. I don't see a chance to get this working, do you?

  9. #29
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    770
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    Quote Originally Posted by BigTitus View Post
    Thanks for your answer! Meanwhile I figured out how your extension is working and I found that it could not work in my app because my grid is loaded by ajax. I don't see a chance to get this working, do you?
    Hi, it works with ajax, too. Show me your grid code for your onReady part and I'll show you how to set it up in the onPrinting part.

  10. #30
    Ext User
    Join Date
    Oct 2007
    Posts
    67
    Vote Rating
    0
    BigTitus is on a distinguished road

      0  

    Default


    Hey Steffen,

    thanks a lot for your help!

    My code looks like this:

    Code:
    Ext.onReady(function() {
      Ext.Ajax.request({
        url: '/get_some_data/for_my_grid',
        success: function() {
          var grid = new Ext.grid.EditorGridPanel({
            id: 'my_grid',
            store: my_store,
            autoWidth: true,
            stripeRows: false,
          });
          main.add(grid);
          main.doLayout();
        }
      });
    });
    Do you need some more information?

Similar Threads

  1. PrinterFriendly issue : {column_name}
    By Cedric_K in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 12 Oct 2010, 1:57 PM

Thread Participants: 76

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