Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #11
    Sencha User
    Join Date
    Oct 2011
    Posts
    15
    Vote Rating
    0
    mfruizs2 is on a distinguished road

      0  

    Default


    Thx 4 the reply.

    It's interesting ... How could i need to rewrite the code on the printer plugin to put the head on all the pages ? because with only adding <thead> and </thead> not do it.

    thx again 4 ur help!

  2. #12
    Touch Premium Member
    Join Date
    Jun 2008
    Location
    Germany, Dortmund
    Posts
    249
    Vote Rating
    12
    hschaefer123 will become famous soon enough

      0  

    Default


    Hi mfruizs2,
    i do not know if this works in all browsers as expected, but you are right.

    You only need the addtional THEAD/TBODY markup to get this working in firefox.
    This is standard html behavior.
    I did not check this thing against all browsers because it is only additional markup (nice to have),

    So if you browser did not cache the script and your table is printed on at least 2 pages
    each page should have its own column description (headers) on top.

    Cheers Holger

  3. #13
    Sencha User
    Join Date
    Oct 2011
    Posts
    15
    Vote Rating
    0
    mfruizs2 is on a distinguished road

      0  

    Default


    Ok thx 4 all. i'm thinking that i need to re-code the CSS to get it.

    cya!

  4. #14
    Sencha User
    Join Date
    Aug 2010
    Posts
    11
    Vote Rating
    0
    craigsimons is on a distinguished road

      0  

    Default Don't view source in Chrome... bad things happen.

    Don't view source in Chrome... bad things happen.


    Viewing source in Chrome will crash the browser. Firefox doesn't crash, but source is blank.

  5. #15
    Sencha User
    Join Date
    Aug 2011
    Posts
    21
    Vote Rating
    0
    venkateshns is on a distinguished road

      0  

    Default How to print a form panel

    How to print a form panel


    HI All,
    Can anybody tell me how to print a form panel ?

    Regards,
    Venkatesh

  6. #16
    Sencha User
    Join Date
    Feb 2011
    Posts
    2
    Vote Rating
    0
    rjsquire is on a distinguished road

      0  

    Exclamation Strange loading issue in the printing window.

    Strange loading issue in the printing window.


    Using the example from the distribution, I found that the css was not getting applied when printAutomatically is true. When it is false, the page never finishes loading. All the content is displayed, but the loading indicator of the browser is still moving.

    To fix this, the stream opened to write to the document needs to be closed. One line is added to the plugin right after the data is written to the document.

    Code:
    win.document.write(html);
    win.document.close(); // this line is new and closes the stream
    if (this.printAutomatically){
        win.print();
        win.close();
    }
    Once that is in place, the printable view works perfectly whether or not printAutomatically is set.

  7. #17
    Sencha User
    Join Date
    Oct 2010
    Location
    ADD ETH
    Posts
    1
    Vote Rating
    0
    amanp is on a distinguished road

      0  

    Default Grouped Headers

    Grouped Headers


    This plugin doesn't support for grid panels with grouped headers...

  8. #18
    Sencha User
    Join Date
    Oct 2010
    Location
    St. Louis, Missouri
    Posts
    40
    Vote Rating
    3
    caballero is on a distinguished road

      0  

    Default


    god bless you hschaefer123


    Your code snippet was a life saver.


    Loraine, you mentioned that you would put his fix into the source. I highly recommend you do. I spent a good hour and a half trying to get this to work on multiple grids.


    Great tool.


    Thanks again.

  9. #19
    Sencha User masoud_tamizy's Avatar
    Join Date
    Oct 2011
    Posts
    108
    Vote Rating
    0
    masoud_tamizy is on a distinguished road

      0  

    Default thanks

    thanks


    very good plugin

  10. #20
    Sencha User
    Join Date
    Dec 2011
    Posts
    38
    Vote Rating
    0
    user ext is on a distinguished road

      0  

    Default if grid rows aggregated into groups, If the columns can contain other columns

    if grid rows aggregated into groups, If the columns can contain other columns


    Quote Originally Posted by amanp View Post
    This plugin doesn't support for grid panels with grouped headers...
    This variant for grouped headers ( column group or nested headers) and grid grouping.
    Code:
     	print: function (grid)
     	{
     		
     		var columns = grid.headerCt.getVisibleGridColumns(false);
     		//drop first empty column (when grid groupped)
     		if (columns[0].dataIndex == null && columns[0].items.length == 0) columns.shift();
     		//build a useable array of store data for the XTemplate
     		var data = [];
     		grid.store.data.each(function (item)
     		{
     			var convertedData = [];
     			//apply renderers from column model
     			for (var key in item.data)
     			{
     				var value = item.data[key];
     				Ext.each(columns, function (column)
     				{
     					if (column.dataIndex == key)
     					{
     						var colIndex = column.getIndex();
     						convertedData[key] = column.renderer ? column.renderer.call(grid, value, null, item, null, colIndex) : value;
     					}
     				}, this);
     			}
     			data.push(convertedData);
     		});
     
     		//create nested headers as html (not used headerTpl)
     		var nr = 0, rows = [[]];
     		var fn = function (item, index, all) 
     		{
     			if (item.dataIndex == null) 
     			{
     				var cols = item.items.items; 
     				if (cols.length > 0 && !item.hidden) 
     				{
     					rows[nr].push('<th colspan="' + cols.length + '"><div align="center">' + item.text + '</div></th>'); 
     					nr++; if (nr == rows.length){ rows[nr] = []; }
     					Ext.each(cols, fn); 
     					nr--;
     				}
     			}
     			else
     			{
     				if (!item.hidden) rows[nr].push('<th{0}>' + item.text + '</th>'); 
     			}
     		}
     		Ext.each(grid.columns, fn); 
     		Ext.each(rows, function (item, index, all) 
     		{
     			item.unshift('<tr>'); item.push('</tr>'); 
     			all[index] = Ext.String.format(item.join(''), ' rowspan="' + (all.length - index) + '"'); 
     		});
     		var headings = rows.join('');
     		var body = Ext.create('Ext.XTemplate', this.bodyTpl).apply(columns);
     
     		var htmlMarkup =
     		[
     			'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
     			'<html>',
     				'<head>',
     				'<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />',
     				'<link href="' + this.stylesheetPath + '" rel="stylesheet" type="text/css" media="screen,print" />',
     				'<title>' + 'table: ' + grid.store.storeId + '</title>',
     				'</head>',
     				'<body>',
     				'<table>',
     					headings,
     					'<tpl for=".">',
     						body,
     					'</tpl>',
     				'</table>',
     				'</body>',
     			'</html>'
     		];
     
     		var html = Ext.create('Ext.XTemplate', htmlMarkup).apply(data);
     
     		//open up a new printing window, write to it, print it and close
     		var win = window.open('', 'printgrid');
     		win.document.write(html);
     		win.document.close();
     
     		if (this.printAutomatically)
     		{
     			win.print();
     			win.close();
     		}
     	},