Results 1 to 6 of 6

Thread: this.scroller

  1. #1
    Ext User
    Join Date
    Apr 2010
    Location
    Genoa Italy
    Posts
    9

    Default this.scroller

    Hi all,
    i'm new on this forum and this is my first thread...
    When i load the page 2 grids generate this type of error on firebug :
    this.scroller is undefined
    [IMG]chrome://firebug/content/blank.gif[/IMG]var swfobject=function(){var E="undefi...);Ext.grid.GroupingView.GROUP_ID=1000;ext-all.js (riga 18)


    this is the code of my grid
    Code:
    function grid_note_date(){
            
        //creazione griglia
        var colModel = new Ext.grid.ColumnModel([
        {
          header : 'Azioni',
          width:50,
          sortable : false,
          renderer : azioni_date
        },                                              
        {
          header : 'Pratica',
          sortable : true,
          dataIndex : 'pratica',
          width: 120,
          renderer : tpl_pratica_date
        },
        {
          header : 'Data scadenza',
          sortable : true,
          dataIndex : 'scadenza_nota',
          width:110
        },
        {
          header : 'Tipo',
          sortable : true,
          dataIndex : 'tipo_nota',
          width:50
        },
        {
          header : 'Ora',
          sortable : true,
          dataIndex : 'titolo',
          width: 100
        },
        {
          header : 'Pr.',
          sortable : true,
          dataIndex : 'provincia',
          width:30
        },
        {
          header : 'Importo affidato',
          sortable : true,
          align : 'right',
          dataIndex : 'importo',
          width:100
        },
        {
          header : 'OutStanding',
          dataIndex : 'outstanding',
          align : 'right',
          sortable : true,
          width:100
        },
        {
          header : 'Cliente',
          dataIndex : 'cliente',
          sortable : true,
          width:150,
          id : 'cliente'
        },
        {
          header : 'Fun',
          dataIndex : 'funzionario',
          sortable : true,
          width:30
        },
        {
          header : 'Col',
          dataIndex : 'collaboratore',
          sortable : true,
          width:30
        },
        {
          header : 'Stato Nota',
          dataIndex : 'stato_nota',
          sortable : true,
          width:100
        },
        {
          header : 'St. Pra.',
          dataIndex : 'stato_pratica',
          sortable : true,
          width:50
        },
        {
          header : 'Data Inserimento',
          dataIndex : 'data_inserimento',
          sortable : true,
          width:100
        }]);
        var gridView = new Ext.grid.GridView();
        var selModel = new Ext.grid.RowSelectionModel({singleSelect : true});
        var grid = new Ext.grid.GridPanel({
            title : 'Note con orario',
            id : 'grid_note_date',
            height : 130,
            autoWidth : true,
            autoscroll:true,
            stateful: true,
            store : store_note,
            stripeRows: true, 
            view : gridView,
            border : true,
            colModel : colModel,
            viewConfig: {
                forceFit:true,
                enableRowBody:true,
                showPreview:true,
                getRowClass : function(record, rowIndex, p, store){
                    if(this.showPreview){
                        p.body = '<p>'+record.data.excerpt+'</p>';
                        return 'x-grid3-row-expanded';
                    }
                    return 'x-grid3-row-collapsed';
                }
            },
    
            // paging bar on the bottom
            bbar:  {
                 xtype : 'paging',
                 id : 'bbar_grid_note_date',
                 store: store_note,
                 pageSize : 25,
                 displayInfo : true
                 },
                 
        loadMask: { msg: 'Caricamento dati in corso...', store: store_note }
        });
        return grid;
    }
    thank you for every help and sorry for my bad english

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    view and viewConfig

    No. viewConfig is the config for the view.

  3. #3
    Ext User
    Join Date
    Apr 2010
    Location
    Genoa Italy
    Posts
    9

    Default

    now i remove the view configuration but the problem isn't solve...
    this is the code actually
    Code:
    var grid = new Ext.grid.GridPanel({
            title : 'Note con orario',
            id : 'grid_note_date',
            height : 130,
            autoWidth : true,
            autoscroll:true,
            stateful: true,
            store : store_note,
            stripeRows: true, 
            //view : gridView,
            border : true,
            colModel : colModel,
            viewConfig: {
                forceFit:true,
                enableRowBody:true,
                showPreview:true,
                getRowClass : function(record, rowIndex, p, store){
                    if(this.showPreview){
                        p.body = '<p>'+record.data.excerpt+'</p>';
                        return 'x-grid3-row-expanded';
                    }
                    return 'x-grid3-row-collapsed';
                }
            },
    
            // paging bar on the bottom
            bbar:  {
                 xtype : 'paging',
                 id : 'bbar_grid_note_date',
                 store: store_note,
                 pageSize : 25,
                 displayInfo : true
                 },
                 
        loadMask: { msg: 'Caricamento dati in corso...', store: store_note }
        });

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    autoWidth conflicts with forceFit obviously.

    But that's not your error.

    You will have to debug.

  5. #5
    Ext User
    Join Date
    Apr 2010
    Location
    Genoa Italy
    Posts
    9

    Default

    i try to remove autoWidth but the error not going away...

  6. #6
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    No, as I said, you will have to debug.

Posting Permissions

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