2013-02-10 98 views
1

我在使用Kendo网格时遇到了一个问题,并且启用了两个分组&列菜单。Kendo UI分栏与列菜单

当我们选择任何一个用于分组的列(比如ShipCountry)时,折叠所有行,从列菜单(列的右下角)取消选择任何列并展开行。 取消选择的列在内部网格中可见&列名在标题中不可见。

我们甚至尝试处理列菜单的检查事件,手动显示或隐藏列 但这并没有奏效。可以帮助解决此问题。

下面是我的实现代码片段。

<html> 
<head> 
    <title></title> 
    <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> 
    <script src="http://cdn.kendostatic.com/2012.3.1315/js/kendo.all.min.js"></script> 
    <link href="http://cdn.kendostatic.com/2012.3.1315/styles/kendo.common.min.css" rel="stylesheet" /> 
    <link href="http://cdn.kendostatic.com/2012.3.1315/styles/kendo.default.min.css" rel="stylesheet" /> 
</head> 
<body> 

     <div id="example" class="k-content"> 
      <div id="grid"></div> 

      <script> 
       $(document).ready(function() { 
        $("#grid").kendoGrid({ 
         dataSource: { 
          type: "odata", 
          transport: { 
           read: "http://demos.kendoui.com/service/Northwind.svc/Orders" 
          }, 
          schema: { 
           model: { 
            fields: { 
             OrderID: { type: "number" }, 
             ShipCountry: { type: "string" }, 
             ShipName: { type: "string" }, 
             ShipAddress: { type: "string" }           
            } 
           } 
          }, 
          pageSize: 10, 
          serverPaging: true, 
          serverFiltering: true, 
          serverSorting: true 
         }, 
         height: 250, 
         sortable: true, 
         filterable: true, 
         columnMenu: true, 
         pageable: true, 
      groupable:true, 
         columns: [ 
          "OrderID", 
          "ShipCountry", 
          "ShipName", 
          { 
           field: "ShipAddress", 
           filterable: false 
          } 
         ] 
        }); 
       }); 
      </script> 
     </div> 
</body> 
</html> 

回答

0

我确认这是一个错误。我已经记录它进行修复。

+0

任何临时快速修复,处理这种情况 – nevernome 2013-02-10 09:55:57

+0

不幸的是没有。 – 2013-02-10 19:45:48

+0

由于某种原因,我无法再重现该错误。你可以试试这个演示:http://jsbin.com/iqusal/3/edit?让我知道你是否可以在那里复制它(以及你采取的步骤)。 – 2013-02-11 08:36:47