2011-01-27 48 views
0

確定這裏的RTL支持時,在IE6和IE7頭消失是我的代碼: 我從 RTL support for ExtJS 3.0ExtJS的Ext.Msg導致電網使用ExtJS的3.0

var store = new Ext.data.JsonStore({ 
    root: 'results', 
    baseParams: { 
     actionName: 'SearchDynamicArchive', 
     xmlFileName: 'Demo.xml' 
    }, 
    totalProperty: 'totalCount', 
    idProperty: 'id', 
    remoteSort: false, 
    fields: ['fileName', 'cbDocType', 'cbDocSubject', 'txtDocDate', 'txtDocName', 'cbInitiativeDepartment', 'cbDepartmentInitiates', 'cbBuyerDepartment', 'cbEconomist', 'txtDemandNumber', 'txtCallNumber', 'txtSupplier', 'uploadDate', 'userName'], 
    url: 'DynamicActionsHandler.ashx', 
    autoLoad: { 
     params: { 
      limit: 30, 
      start: 0, 
      actionName: 'SearchDynamicArchive', 
      siteID: 'e60b36f9-2e62-4425-b015-5de58325aaa8', 
      panelId: 'bzqSearchPanel', 
      xmlFileName: 'Demo.xml' 
     } 
    } 
}); 

var grid = new Ext.grid.GridPanel({ 
    title: '', 
    store: store, 
    trackMouseOver: true, 
    disableSelection: true, 
    loadMask: false, 
    columns: [{ 
     id: 'srf2', 
     header: '<b>שם צרופה</b>', 
     dataIndex: 'fileName', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'cbDocType', 
     header: '<b>סוג מסמך</b>', 
     dataIndex: 'cbDocType', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'cbDocSubject', 
     header: '<b>נושא מסמך</b>', 
     dataIndex: 'cbDocSubject', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'txtFromDocDate', 
     header: '<b>תאריך מסמך</b>', 
     dataIndex: 'txtDocDate', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'txtDocName', 
     header: '<b>שם מסמך</b>', 
     dataIndex: 'txtDocName', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'cbInitiativeDepartment', 
     header: '<b>חטיבה יוזמת</b>', 
     dataIndex: 'cbInitiativeDepartment', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'cbDepartmentInitiates', 
     header: '<b>אגף יוזם</b>', 
     dataIndex: 'cbDepartmentInitiates', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'cbBuyerDepartment', 
     header: '<b>ממ&quot;ח רכש</b>', 
     dataIndex: 'cbBuyerDepartment', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'cbEconomist', 
     header: '<b>כלכלן</b>', 
     dataIndex: 'cbEconomist', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'txtDemandNumber', 
     header: '<b>מספר דרישה</b>', 
     dataIndex: 'txtDemandNumber', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'txtCallNumber', 
     header: '<b>מספר התקשרות</b>', 
     dataIndex: 'txtCallNumber', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'txtSupplier', 
     header: '<b>ספק</b>', 
     dataIndex: 'txtSupplier', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'txtFromDocUploadDate', 
     header: '<b>תאריך העלאה</b>', 
     dataIndex: 'uploadDate', 
     width: 'auto', 
     sortable: true 
    }, { 
     id: 'userName', 
     header: '<b>שם משתמש</b>', 
     dataIndex: 'userName', 
     width: 'auto', 
     sortable: true 
    }], 
    stripeRows: true, 
    viewConfig: { 
     forceFit: true, 
     enableRowBody: true, 
     showPreview: true 
    }, 
    sm: new Ext.grid.RowSelectionModel({ 
     singleSelect: true 
    }) 

    , 
    bbar: [new Ext.PagingToolbar({ 
     id: 'paging-bar', 
     pageSize: 30, 
     store: store, 
     displayInfo: true, 
     displayMsg: localize.displayPages, 
     emptyMsg: localize.noDocsToDisplay, 
     listeners: { 
      beforechange: onBeforePageChange 
     } 
    })], 
    listeners: { 
     rowcontextmenu: onRowcontextmenu, 
     rowdblclick: function (g, ri, e) { 
      downloadFile(store.getAt(ri).id); 
     }, 
     render: function (grid) { 
      grid.getEl().on("contextmenu", Ext.emptyFn, null, { 
       preventDefault: true 
      }); 
     } 
    }, 
    contextMenu: new Ext.menu.Menu({ 
     items: [{ 
      pressed: false, 
      enableToggle: false, 
      text: localize.updateRecord, 
      id: 'update_attachment' 
     }, { 
      pressed: false, 
      enableToggle: false, 
      text: localize.deleteRecord, 
      id: 'delete_attachment' 
     }, { 
      pressed: false, 
      enableToggle: false, 
      text: localize.downloadRecord, 
      id: 'download_attachment' 
     }], 
     listeners: { 
      itemclick: onItemclick 
     } 
    }), 
    autoExpandColumn: 'userName', 
    id: 'searchResultPanel', 
    enableColumnResize: true 
}); 

Ext.onReady(function() { 
    var dynamic_grid = new Ext.Container({ 
     layout: 'fit', 
     items: grid, 
     renderTo: 'dynamic_grid' 
    }) 
    onPageResize(); 
    window.onresize = onPageResize; 
}); 

現在ExtJS的3.0使用RTL支持當我彈出一個Ext.Msg警報時,它會附帶一個使網格標題消失的遮罩層。 我應該在哪裏尋找這裏的補救措施? 任何幫助將撥款...

回答

0

你確定要使用Ext.MessageBox?如果你指的是API,這個組件不同之處在於,因爲它是異步它不停止執行代碼的常規JavaScript警告()。

如果您打算停止所有代碼執行,直到用戶按下「OK」的提示框,你應該堅持純老警報();

+0

我使用它來REF執行的其餘部分同步的能力。 這不是我所面臨的問題。這是消息框帶來的掩蓋,給我的辛苦時間。不知何故,掩碼導致頁面上的元素改變其原來的位置。 – AMember 2011-01-29 07:16:49