2017-02-24 58 views
0

分組之前之後:劍道網格標題和列不對齊分組

enter image description here

分組後:電網

enter image description here

代碼片段:

"controls": [ 
       { 
        "control_key": "siteassignment_grid", 
        "control_type_key": "grid", 
        "target_device_key": "normal", 
        "configuration": { 
         "AssignmentGrid": { 
          "options": { 
           "AllowSorting": { 
            "mode": "single", 
            "allowUnsort": "false" 
           }, 
           "AllowFiltering": "true", 
           "AllowGrouping": "true", 
           "AllowReordering": "true", 
           "Selection": "false" 
          }, 
          "schema": { 
           "fields": [ 
            "string", 
            "string", 
            "string", 
            "string", 
            "string", 
            "string", 
            "string", 
            "string", 
            "string", 
            "string", 
            "string", 
            "string" 
           ] 
          }, 
          "columns": [ 
           { 
            "headerTemplate": "<input type='checkbox' id='chkSelectAll' class='chkSelectAll' onclick='SiteAssignment.Widget.SearchSitesAssign.checkAll(this)'/>", 
            "template": "<input type='checkbox' class='checkbox' onclick='SiteAssignment.Widget.UpdateAssignment.LoadWidget()'/>", "width": "25px" 
           }, 
           { 
            "field": "element_code", 
            "title": "Config Item Id", 
            "min_width": "75", 
            "max_width": "75",                    
           }, 

           { 
            "field": "element_desc", 
            "title": "Config Item Name", 
            "min_width": "110", 
            "max_width": "110", 
            "template": "#= SiteAssignment.Widget.SearchSitesAssign.GridColumnToolTip(element_desc) #" 
           }, 

.. .etc ...

知道分組時觸發了更改事件,我檢查了代碼以查看是否有任何可能導致此問題的原因。我禁用了這個,仍然有這個問題。任何幫助將不勝感激。

回答

0

設置min_width和max_width有可能導致問題嗎?我很喜歡使用Kendo UI,但是我想知道是否在重新分組之後重新計算寬度或類似的東西。我首先對寬度值進行硬編碼,然後看看它是否會進行更多的合作。