2013-02-10 103 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