Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    4
    Vote Rating
    0
    marlborino is on a distinguished road

      0  

    Default Not empty GridPanel

    Not empty GridPanel


    Good morning,
    My application shows a different behaviour between FireFox and IE.
    There's a GridPanel filled with a JsonStore, this is the grid definition:
    Code:
    var resultSourceGrid = Ext.extend(Ext.grid.GridPanel, {
        initComponent: function() {
            Ext.apply(this, {
                hideLabel: true,
                border: false,
                stripeRows: true,
                header: false,
                disableSelection: true,
                loadMask: false,
                height: 600,
                width: 804,
                columns: [
                    sm,
                    {header: 'Titolo', width: 90, sortable: false, renderer: linksRenderer, dataIndex: 'title'},
                    {header: 'Score', width: 10, sortable: false, dataIndex: 'score'}
                ],
                selModel: sm,
                view: new Ext.grid.GridView({
                    forceFit:true,
                    showGroupName: false,
                    groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})',
                    enableRowBody:true,
                    showPreview:true,
                    rowSelector: 'div.x-grid3-row',
                    getRowClass : function(record, rowIndex, p, store){
                        var app = record.json.snippet;
                        var part1 = '<div style="margin-top:5px"><b>Fonte:</b>'+record.get('data-source')+'</br></br>';
                        if(app != undefined){
                            for(var i=0; i<app.length; ++i){
                                part1 += app[i];
                            }
                        }
                        var app2 = record.get('identifier');
                        app2 = app2.replace(/\\/g, "/");
                        app2 = app2.replace(/\'/g,"\\'");
                        part1 += '</br><a href="#" onclick="openPDF(\''+app2+'\')">Copia File Originale</a></div>';
                        p.body = part1;
                        return 'x-grid3-row-expanded';
                    }
                })
            });
            resultSourceGrid.superclass.initComponent.apply(this, arguments);
        }
    });
    The anomaly occurs when the jsonStore is empty.
    In IE the grid appears blank on the other hand with FireFox in the grid appear the static strings of the GetRowClass function in the GridView.
    Having said that, I would know if this is a normal behaviour and how I can solve this issue.
    Thanks.

  2. #2
    Sencha User darthwes's Avatar
    Join Date
    Mar 2010
    Posts
    633
    Vote Rating
    -13
    darthwes can only hope to improve

      0  

    Default


    Ext4? These are the Ext3 forums...No Ext 3 GridView can possibly be mistaken for the config you've got...
    Wes

  3. #3
    Touch Premium Member
    Join Date
    Jul 2011
    Posts
    29
    Vote Rating
    0
    fmesiano is on a distinguished road

      0  

    Default


    Darthwes this code is developed on ext 3.3.3, anyway I have created another post more specific here:
    http://www.sencha.com/forum/showthread.php?155296-blank-GridPanel-issue

    In that post I have submitted two screenshots to show the different behaviours.

    I'm sorry for the double post but I didn't know that my enterprise has had the Premium access in this forum.
    Thanks a lot.

  4. #4
    Sencha User darthwes's Avatar
    Join Date
    Mar 2010
    Posts
    633
    Vote Rating
    -13
    darthwes can only hope to improve

      0  

    Default


    Again, this can not work in 3.3 without some overrides/ux packages.

    Ext.grid.GridView does not define, use, or mention showPreview, showGroupName, and groupTextTpl properties.

    Perhaps you meant to use an Ext.grid.GroupingView?

    Or show us the ux/overrides?
    Wes

Thread Participants: 2