1. #171
    Ext JS Premium Member
    Join Date
    Feb 2012
    Posts
    27
    Vote Rating
    0
    crgrah is on a distinguished road

      0  

    Default Help with sorting....

    Help with sorting....


    Im sure im missing something simple here.

    this is my code, but no sort shows up when tapping the headers

    Code:
    var store = Ext.StoreMgr.get('ReferrerJsonStore');
    store.on('load', function(){
        var panel = Ext.create('Ext.Panel', {
            title : 'Top Referrers',
            baseCls: 'p-admin-gridview-panel',
            top:20,
            right:20,
            bottom:20,
            left:20,
    
    
            layout     : {
                type : 'fit'
            },
    
    
            items      : Ext.create('Ext.ux.touch.grid.View', {
                flex     : 1,
                store    : store,
                calcWidth : true,
                features : [
                {
                    ftype    : 'Ext.ux.touch.grid.feature.Sorter',
                    launchFn : 'initialize'
                }
                ],
                columns : [{
                    header    : 'Full Name',
                    dataIndex : 'FullName',
                    style     : 'padding-left: 1em;',
                    width     : '20%',
                    sortable  : true,
                    filter    : { type : 'string' }
                },
                {
                    header    : 'Phone#',
                    dataIndex : 'ContactNumber',
                    style     : 'padding-left: 1em;',
                    width     : '15%',
                    sortable  : false,
                    filter    : { type : 'string' }
                },
         .
    .
    .
    thanks in advance

  2. #172
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,727
    Vote Rating
    752
    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


    Did you include the CSS?
    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.

  3. #173
    Ext JS Premium Member
    Join Date
    Feb 2012
    Posts
    27
    Vote Rating
    0
    crgrah is on a distinguished road

      0  

    Default like this?

    like this?


    Code:
    <!-- Ext.ux.touch.grid -->
    		<script type="text/javascript" charset="utf-8" src="grid/Ext.ux.touch.grid/feature/Abstract.js"></script>
    		<script type="text/javascript" charset="utf-8" src="grid/Ext.ux.touch.grid/feature/Feature.js"></script>
    		<script type="text/javascript" charset="utf-8" src="grid/Ext.ux.touch.grid/feature/HeaderMenu.js"></script>
    		<script type="text/javascript" charset="utf-8" src="grid/Ext.ux.touch.grid/feature/Sorter.js"></script>
    		<script type="text/javascript" charset="utf-8" src="grid/Ext.ux.touch.grid/View.js"></script>
    		<link type="text/css" rel="stylesheet" href="grid/resources/css/Ext.ux.grid.View.css" />

  4. #174
    Sencha User kjwenger's Avatar
    Join Date
    May 2012
    Posts
    6
    Vote Rating
    0
    kjwenger is on a distinguished road

      0  

    Default column re-ordering

    column re-ordering


    as always, great job Mitchell and Sencha team!

    quick Q tho: is column re-ordering possible already and if it is, could anybody give me a prod in the right direction?

    much obliged!

    k

  5. #175
    Sencha User kjwenger's Avatar
    Join Date
    May 2012
    Posts
    6
    Vote Rating
    0
    kjwenger is on a distinguished road

      0  

    Default lil bug in getColumn

    lil bug in getColumn


    View.getColumn returns the last column if a dataIndex is given that is not currently used for a column. not a biggie.

  6. #176
    Sencha User kjwenger's Avatar
    Join Date
    May 2012
    Posts
    6
    Vote Rating
    0
    kjwenger is on a distinguished road

      0  

    Default


    Quote Originally Posted by kjwenger View Post
    as always, great job Mitchell and Sencha team!

    quick Q tho: is column re-ordering possible already and if it is, could anybody give me a prod in the right direction?

    much obliged!

    k
    Mitchell already gave the answer in his code :

    {
    xtype: 'button',
    text: 'Swap A230/A260',
    handler: function(button) {
    var grid = button.up('touchgridpanel');


    var a230 = grid.getColumns()[2];
    var swap = Ext.apply(new Object(), a230);
    var a260 = grid.getColumns()[3];
    Ext.apply(a230, a260);
    Ext.apply(a260, swap);
    grid.setItemTpl(null);
    grid.refresh();
    }

    This little example swaps/re-orders two columns.

  7. #177
    Sencha User
    Join Date
    Dec 2010
    Posts
    34
    Vote Rating
    0
    lincon6 is an unknown quantity at this point

      0  

    Default will you consider adding summary feature

    will you consider adding summary feature


    Hi mitchellsimoens,
    will you consider adding summary feature?


    regards


  8. #178
    Sencha User
    Join Date
    Oct 2011
    Posts
    6
    Vote Rating
    0
    potnuru is on a distinguished road

      0  

    Default Row Expander using Ext.ux.touch.grid

    Row Expander using Ext.ux.touch.grid


    HI mitchellsimoens ,

    Using Ext.ux.touch.grid can we implement the Expand/Collapse Row like below?

    Any pointers will really help us.



    ExpandCollapse.jpg

  9. #179
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,727
    Vote Rating
    752
    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


    You can but it's not supported out of the box
    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.

  10. #180
    Sencha User
    Join Date
    Oct 2011
    Posts
    6
    Vote Rating
    0
    potnuru is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    You can but it's not supported out of the box
    Any pointers how I can implement this

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