javascript - Bootstrap 2 或 3 Modal 中的 Kendo Grid - IE 过滤器不起作用

标签 javascript internet-explorer twitter-bootstrap kendo-ui kendo-grid

请在 IE(启动 v2)中查看:http://jsbin.com/emuqazEz/22 这是 bootstrap 3 版本:http://jsbin.com/emuqazEz/31

这是可编辑版本:http://jsbin.com/emuqazEz/22/edit

过滤器在我测试过的任何版本的 IE 中都不起作用。但在 Chrome 或 Firefox 中它工作正常。

这是列设置和数据源:

columnsettings = [
        "ProductName",
        {
                field: "UnitPrice",
                title: "Unit Price",
                format: "{0:c}",
                width: "130px"
        },
        {
                field: "UnitsInStock",
                title: "Units In Stock",
                width: "130px"
        },
        {
                field: "Discontinued",
                width: "130px"
        }
];

var gridDataSource = new kendo.data.DataSource({
     data: products,
     schema: {
              model: {
                      id: "uid",
                      fields: {
                        ProductName: { type: "string" },
                        UnitPrice: { type: "number" },
                        UnitsInStock: { type: "number" },
                        Discontinued: { type: "boolean" }
                      }
              }
      },
      sort: {
              field: "",
              dir: "desc"
      },
      pageSize: 50
});

最佳答案

以下是解决我的问题的方法:

对于 Bootstrap 3.0

$('#myModal').on('shown.bs.modal', function () {
   $(document).off('focusin.modal');
  })

对于 Telerik 提供的其他较低版本

$('#myModal').on('shown', function () {
  $(document).off('focusin.modal');
});

关于javascript - Bootstrap 2 或 3 Modal 中的 Kendo Grid - IE 过滤器不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21714419/

相关文章:

javascript - 如何检测用户何时在输入字段中按下 Enter

javascript - Internet Explorer 扩展 (BHO) 中的沙盒 Javascript 执行

从 IE8 移动到 IE11 : "Object doesn' t support property or method 'all' "后 Javascript 损坏

javascript - AngularJS - 搜索整个分页表

HTML Bootstrap 导航标签

javascript - 查找与 jquery 中悬停的元素具有相同父级的所有子级

javascript - ng-view没有从href获取数据?

c++ - OLE 自动化是通过 C++ 自动化 IE 的好选择吗?

twitter-bootstrap - React-bootstrap-table 双 header

javascript - Web Worker 中的 Chrome 套接字?