Hybrid View

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    23
    Vote Rating
    0
    kumar100 is on a distinguished road

      0  

    Default Unanswered: Ext JS 4 Plugin: Live-Search-Grid - How to modify my Grid definition !

    Unanswered: Ext JS 4 Plugin: Live-Search-Grid - How to modify my Grid definition !


    I am trying to replace my grid with 'Live-Search-Grid' plugin. The 'live-search-grid' example and the way my past developer coded the custom Grid look quite different and I couldn't replace it and get it working properly.

    Here is the example supplied by Ext JS:
    Code:
        Ext.create('Ext.ux.LiveSearchGridPanel', {        store: store,
            columns: [
                { text: 'Company', flex     : 1,sortable : false,  dataIndex: 'company'},
                { text: 'Price', width: 75,   sortable : true,  renderer : 'usMoney', dataIndex: 'price'},
                { text: 'Change', width: 75, sortable : true, dataIndex: 'change',renderer: change },
                { text: '% Change', width: 75, dataIndex: 'pctChange', renderer: pctChange },
                { text : 'Last Updated', width    : 85, sortable : true, dataIndex: 'lastChange' }
            ],
            renderTo: 'grid-example'
        });
    });
    And, here is the existing grid:
    Code:
    Ext.Loader.setPath('Ext.ux', '/extjs/');Ext.require(['Ext.ux.RowExpander']);
    
     Ext.define('Loyaltics.view.chart.ReportAdvGrowthGrid' ,{
        extend: 'Ext.panel.Panel',
        ,layout:'border'        
          ,initComponent:function()
          {
              this.items = [
                {
            xtype:'grid'    
            ,height: '1000px'
            ,autoScroll:true
            ,region:'center'
            ,columnLines: true   
            store:'GrowthReports',
    
             columns:[
                   {header: 'Survey Id',  dataIndex: 'id',hidden:true},
                   {header: 'Campaign Id',  dataIndex: 'campaign_id',hidden:true},
                   {header: 'Customer Name', dataIndex: 'username',id:'username', flex:1 },
                   {header: 'Customer Email', dataIndex: 'email', flex:1, id:'email',flex:1}]
           } ];
            
            this.tbar = ['->',
                { id: 'cmb_campaign',  xtype: 'combo'},
                { id: 'cmb_year', xtype: 'combo' }];
             
             this.dockedItems = [{
                    dock: 'bottom',
                    xtype: 'pagingtoolbar',
                      pageSize: 10
                }];
            this.callParent();
            }
    });
    Can you please help, how to go about utilizing live-search-grid ? Do we need to replace Ext.Define, initComponent, this.items ? Thanks in advance !.

    BTW, We are on Ext JS 4.0.2a.
    Last edited by kumar100; 13 Dec 2011 at 2:59 AM. Reason: d

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Answers
    3467
    Vote Rating
    834
    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


    Please post in the appropriate forum. I have moved this to the Ext JS 4 Q&A forum for you.
    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. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    23
    Vote Rating
    0
    kumar100 is on a distinguished road

      0  

    Default


    Thanks Mitchell, I wasn't knowing !.

    And, everyone !

    What is the xtype for live-search-grid ? Our existing code uses Ext.Define, and live-search-grid example uses Ext.Create !. Can we just replace xtype: 'grid' to xtype:'something' ? I tried with livesearchgrid, live-search-grid etc, but to no avail.

    Any help, please ?

  4. #4
    Sencha User
    Join Date
    Jun 2010
    Posts
    10
    Vote Rating
    0
    directors@j7group is on a distinguished road

      0  

    Default


    Hi I am having the same issue trying to modify my grid definition to 'live-search-grid'. Did you get the issue resolved?

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..." hd porno faketaxi