Results 1 to 3 of 3

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    23
    Answers
    1
    Vote Rating
    0
      0  

    Default 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?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •