简体   繁体   English

ext js网格面板滚动条不能与jquery一起使用

[英]ext js grid panel scrollbar not working with jquery

i'm working on an attendance program and i have this requirement to be able to delete the user, so i decided to use the ext js grid for that. 我正在制定一个考勤计划,我有这个要求能够删除用户,所以我决定使用ext js网格。

Im my application i have mostly used jquery, and i am using the fading methods to navigate to different links. 我的应用程序我大多使用jquery,我使用淡入淡出的方法导航到不同的链接。 ie my application runs on single url. 即我的应用程序在单个URL上运行。
Now when i do that on ext js grid, the scroll bar does not show. 现在,当我在ext js网格上执行此操作时,滚动条不会显示。 But normally, without the fading navigation the scroll bar is shown Here is the code for the grid: 但通常情况下,如果没有淡入淡出的导航,则显示滚动条以下是网格的代码:

editableGrid = new Ext.grid.GridPanel({
            frame: true,
            id: "employeesGrid",
            renderTo: "emps",
            cm: colModel,
            sm: sm,
            store: store,
            height: 270,
            // inline toolbars
            tbar: [{
                text: 'Delete',
                tooltip: 'Click here to delete schedule billing entries',
                iconCls: 'remove',
                id: 'btnRemoveRow',
                handler: DeleteSelectedRows
            }]

        });

and yeah one more thing, im loading the store as soon as the application starts. 还有一件事,我在应用程序启动后立即加载商店。 The grid is there but the div is hidden, when i use the following code: 当我使用以下代码时,网格存在,但div被隐藏了:

 $("#empDetails").fadeOut("slow", function () {
    $("#reportsLink").fadeOut();
    $("#timeInAndOutLink").fadeOut();
    $("#employeeInfoLink").fadeOut();
    $("#employeesLink").fadeOut();

    $("#allEmpsDetails").fadeIn();
});

the scroll bar is not shown 滚动条未显示

I was facing a similar problem. 我遇到了类似的问题。 By reading your question I've figured out how to solve my problem. 通过阅读你的问题,我已经找到了解决问题的方法。 It might work with your code. 它可能适用于您的代码。

My code shows a grid inside a popup (div). 我的代码在弹出窗口(div)中显示了一个网格。 The content of the popup is loaded by jQuery. 弹出窗口的内容由jQuery加载。 I was loading the content to the hidden div and then showing the popup. 我正在将内容加载到隐藏的div,然后显示弹出窗口。

To solve the problem, I've inverted the order: Show the popup and then load its contents (the grid). 为了解决这个问题,我颠倒了顺序:显示弹出窗口然后加载其内容(网格)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM