1. #1
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    750
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default Ext.ux.touch.GridSummary v1

    Ext.ux.touch.GridSummary v1


    This is a plugin for Ext.ux.TouchGridPanel to add a summary dock or row.

    This will only summarize numbers. Works in conjunction with Ext.ux.touch.PagingToolbar and will refresh the summaries when data changes in the Store.

    I'm not 100% happy with this but it will work for now. I will improve when I have some more time.

    Github - https://github.com/mitchellsimoens/E...ch.GridSummary
    Demo - http://www.simoens.org/Sencha-Projects/demos/

    usage:

    Code:
    {
        xtype: "touchgridpanel",
        ...
        plugins: [
            new Ext.ux.touch.GridSummary({
                type: "row", //default is "dock"
                summaryType: "average", //default is "total"
                decimalPosition: 1 //default is 2
            })
        ]
        ...
    }
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  2. #2
    Touch Premium Member
    Join Date
    Jan 2009
    Posts
    58
    Vote Rating
    1
    Designworxz is on a distinguished road

      0  

    Default


    Mitchell,

    Am trying at add your plugin my tabpanel, All i can see is header for grid cant see rows. Can you help me

    Code:
    Ext.setup({
        onReady: function() {
    	
    	var Grid=new Ext.ux.TouchGridPanel({
    			store       : Demo.data.TouchGridPanelStore,
    			colModel    : [{
    				header   : "Name",
    				mapping  : "name"
    			},{
    				header   : "Address",
    				mapping  : "address",
    				style    : "text-align: center;"
    			},{
    				header   : "City",
    				mapping  : "city",
    				cls      : "centered-cell"
    				
    			}],
    		});
    		
    	//var xForm=new Ext.Form
    	var pnl=new Ext.Panel({
    		width:'80%',
    		height:'70%',
    		scroll: 'vertical',
    		bodyStyle:'margin-top:2%;margin-left:1%',
    		items:Grid
    
    
    	});
    	
    	
    	
    	var Maintool=new Ext.Toolbar({
    			dock: 'bottom',
    						defaults:{flex:1},
    						floating: false,
    						style: 'opacity: 1.0;',
    						items: [
    							
    							{xtype: 'spacer'},
    							{
    								text: 'SAVE',
    								ui: 'confirm',
    								handler: function() {
    								 
    								}
    								
    							}
    						]
    	});
    	
    	var Subtool=new Ext.Toolbar({
    				dock: 'bottom',
    							defaults:{flex:1},
    							floating: false,
    							style: 'opacity: 1.0;',
    							items: [
    								
    								{xtype: 'spacer'},
    								{
    									text: 'SAVE',
    									ui: 'confirm',
    									handler: function() {
    									 
    									}
    									
    								}
    							]
    		});
    	
            // Sub-page sections
            var mGrid = {
                title: "Grid",
                layout: {
    				type:'hbox',
    				padding:'5',
    				pack:'left',
    				align:'left'
    			},
    			items:pnl,
    			dockedItems:Subtool
            };
            var blah2 = {
                title: "one"
            };  
    
    
            // Main portion of the page, which includes top toolbar and content
            var page1 = new Ext.TabPanel({
                items: [mGrid, blah2],
                title: "one",
                iconMask: true,
                iconCls: "download",
            });
    
    
            // This is the outer panel with the bottom toolbar
            var wrapper = new Ext.TabPanel({
                fullscreen: true,
                tabBar: {
                    dock: 'top',
                    layout: {
                        pack: 'right'
                    }
                },
                items: [
                    page1,
                    {
                        iconMask: true,
    					title:'test',
                        iconCls: "favorites"
                    },
                    {
                        iconMask: true,
                        iconCls: "search"
                    },
                    {
                        iconMask: true,
                        iconCls: "user"
                    }
                ]
            });
        }
    });

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    750
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    width/height do not take strings, they only take numbers (int). You are overnesting, looks like you don't need the Panel wrapping the TouchGridPanel. TouchGridPanel extends from Panel. Further more you wrap the Panel that wraps TouchGridPanel into another Panel to put into your TabPanel. That's overnesting.

    Try putting the TouchGridPanel as an item in the TabPanel.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #4
    Touch Premium Member
    Join Date
    Jan 2009
    Posts
    58
    Vote Rating
    1
    Designworxz is on a distinguished road

      0  

    Default


    Thanks it worked.

Similar Threads

  1. GridSummary with DWR not working
    By Tod in forum Ext 3.x: User Extensions and Plugins
    Replies: 10
    Last Post: 13 Oct 2010, 5:17 AM
  2. GridSummary row position
    By simon in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 13 Aug 2009, 12:15 AM
  3. access GridSummary
    By sameera.abey@gmail.com in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 12 Jul 2009, 11:45 PM
  4. gridsummary tabpannel
    By Richie1985 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 9 Oct 2008, 5:21 AM
  5. CC.grid.GridSummary
    By CPliskin in forum Ext 2.x: User Extensions and Plugins
    Replies: 5
    Last Post: 10 Mar 2008, 5:13 PM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar