Threaded View

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    23
    Answers
    1
    Vote Rating
    0
    Abhi_aec is on a distinguished road

      0  

    Default Answered: Problem in Ext.ux.touch.grid-master 2.1.0

    Answered: Problem in Ext.ux.touch.grid-master 2.1.0


    Hi!



    I am using Ext.ux.touch.grid-master which is updated to work with 2.1.0 final from github with Sencha Touch 2.1
    My problem is that i'm not able to find grid in right manner, means getting column header in on stack then corresponding data in one by one stack.


    But it should be in right manner.


    Below are the code from where I'm using grid component:
    In below code List, feature, Sorter and Abstract are available in provided grid component from github
    , i'm just modify them according to my project but not much, that's why not attaching them.


    Code:
    Ext.define('BenefitAccess.view.Table2Panel', {    extend: 'Ext.Panel',
        alias : 'widget.Table2Panel',
        xtype: 'table2Panel',
        id:'table2Panel',
    
        requires: [
    'BenefitAccess.store.TableStore',
    'BenefitAccess.view.List',
    'BenefitAccess.view.View',
    'BenefitAccess.view.feature.Feature',
    'BenefitAccess.view.feature.Sorter',
    'BenefitAccess.view.feature.Abstract'
        ],
    
        config: {
            layout:'fit',
    //padding:5,
            items:[
                {
                    xtype: 'touchgridpanel',
                    flex:1,
                    store: 'TableStore',
    
                    features   : [
                    {
                        ftype    : 'BenefitAccess.view.feature.Editable',
                        launchFn : 'initialize'
                    },
                    {
                        ftype    : 'BenefitAccess.view.feature.Sorter',
                        launchFn : 'initialize'
                    }
                ],
                columns   : [
                    {
                        header    : '<font size="3">Status</font>',
                        dataIndex : 'Status',
                        style    : "font:13px Verdana;text-align: center;",
    //cls      : "centered-cell",
                        width     : '10%',
                        filter    : { type : 'string' }
                    },
                    {
                        header    : '<font size="3">Grant Date',
                        dataIndex : 'GrantDate',
                        style    : "font:13px Verdana;text-align: center;",
    //cls      : "centered-cell",
                        width     : '15%',
                        filter    : { type : 'string' }
                    },
                    {
                        header    : '<font size="3">Grant Number',
                        dataIndex : 'GrantNumber',
                        style    : "font:13px Verdana;text-align: center;",
    //cls      : "centered-cell",
                        width     : '10%',
                        filter    : { type : 'string' },
                    },
                    {
                        header    : '<font size="3">Grant Type',
                        dataIndex : 'GrantType',
                        style    : "font:13px Verdana;text-align: center;",
    //cls      : "centered-cell",
                        width     : '10%',
                        filter    : { type : 'numeric' },
                    },
                    {
                        header    : '<font size="3">Grant Price',
                        dataIndex : 'GrantPrice',
                        style    : "font:13px Verdana;text-align: center;",
    //cls      : "centered-cell",
                        width     : '10%',
                        filter    : { type : 'numeric' }
                    },
                    {
                        header    : '<font size="3">Expiration Date',
                        dataIndex : 'ExpirationDate',
                        style    : "font:13px Verdana;text-align: center;",
                        cls      : "centered-cell",
                        width     : '10%',
                        filter    : { type : 'numeric' }
                    },
                   {
                        header    : '<font size="3">Granted',
                        dataIndex : 'Granted',
                        style    : "font:13px Verdana;text-align: center;",
    //cls      : "centered-cell",
                        width     : '10%',
                        filter    : { type : 'numeric' }
                    },
                    {
                        header    : '<font size="3">Exercised',
                        dataIndex : 'Exercised',
                        style    : "font:13px Verdana;text-align: center;",
    //cls      : "centered-cell",
                        width     : '10%',
                        filter    : { type : 'numeric' }
                    },
                    {
                        header    : '<font size="3">Outstanding',
                        dataIndex : 'Outstanding',
                        style    : "font:13px Verdana;text-align: center;",
    //cls      : "centered-cell",
                        width     : '10%',
                        filter    : { type : 'numeric' }
                    },
                    {
                        header    : '<font size="3">Exercisable Value',
                        dataIndex : 'ExercisableValue',
                        style    : "font:13px Verdana;text-align: center;",
    //cls      : "centered-cell",
                        width     : '5%',
                        filter    : { type : 'numeric' }
                    }                
                ]
                }
    
            ]
        }
    
    });



    also attaching screen shot of grid to understand original problem:

    GridSC.jpg

    Thanks in advance.

    Regards,
    Abhi

  2. Did you include the CSS?

Thread Participants: 1

Tags for this Thread

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..."