1. #1
    Ext User
    Join Date
    Nov 2010
    Posts
    1
    Vote Rating
    0
    danrah is on a distinguished road

      0  

    Default IE8 doesn't show gridpanel

    IE8 doesn't show gridpanel


    I have a grid panel that is not shown in IE8 but everything works fine in ff and opera. here's my code:

    Code:
     <div id="mydiv"></div>
    
        <style type="text/css">
        .x-grid3-cell-inner, .x-grid3-hd-inner  {white-space: inherit;}
        </style>
        <script type="text/javascript">    
        var sData=[["7039","","","dummy value","Application Administrator","Application Administrator","89/9/14?? 14:37:02 (GMT+03:30)","dummy value"],["8198","","","dummy value s","Application Administrator","","","dummy value"],["8247","","","dummy value","Application Administrator","","","dummy value"],["8261","","","dummy value","Application Administrator","","","dummy value"]];
      
        Ext.onReady(function(){
            Ext.QuickTips.init();
            var store = new Ext.data.Store({
                data: sData,
                reader: new Ext.data.ArrayReader({
                    envelope_id: 'envelope_id'
                }, ['envelope_id', 'status_id', 'workflow_name', 'name','created_by_full_name','modified_by_full_name', {
                    name: 'modified_datetime',                
                }, 'step_name'])
            });
            
            function linkFactory(val,x,store){
                 return '<a href="/workflow/envelope/EnvelopeProperties.jsp?id='+store.data.envelope_id+'">'+val+'</a>';
                
            }
            function del(val){
    
                return '<a href="javascript:abortEnvelope(\''+val+'\', \'personal\')"><img src="../images/icons/toolbar-gen-cancel_on.gif" /></a>';}
            
            var grid = new Ext.grid.GridPanel({
                renderTo: Ext.get('mydiv'),
                frame: true,
                width: 520,
                stripeRows: true,
                enableColumnMove: false,
                store: store,
                columns: [
                          {header: "dummy value", width: 235,renderer:linkFactory, dataIndex: 'name',sortable:true,css: 'white-space:normal;'},
                        {header: "dummy value",width:85 ,dataIndex: 'step_name',sortable:true},
                        {header: "dummy value",width:120,dataIndex: 'modified_datetime',sortable:true,css: 'white-space:normal;'},                    
                        {header: "dummy value ", dataIndex: 'workflow_name',sortable:true,hidden:true,css: 'white-space:normal;'},
                        {header: "dummy value ", dataIndex: 'created_by_full_name',sortable:true,hidden:true,css: 'white-space:normal;'},
                        {header: "dummy value", dataIndex: 'modified_by_full_name',sortable:true,hidden:true,css: 'white-space:normal;'},
                        {renderer:del,width:25,dataIndex: 'envelope_id',hideable:false}
                          ]
            });
            
        });    
        </script>
    </form>
    I have no idea which part is causing trouble and i'd be grateful if you help me.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    91
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Trailing comma:
    Code:
    name: 'modified_datetime',
    ps. Always run your code through jslint.com first!

Similar Threads

  1. GridPanel doesn't show data
    By guys2008 in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 13 Oct 2010, 6:18 AM
  2. Grid IE8 doesn't show any data until select
    By so0ly in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 17 Mar 2010, 8:29 AM
  3. GridPanel doesn't fill in IE8
    By FaridJC in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 3 Feb 2010, 2:02 PM
  4. [2.0.2] Ext.Msg.show doesn't show the second time called?
    By ikk0 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 25 Apr 2008, 1:04 PM

Thread Participants: 1