2017-02-24 29 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,但是我想知道是否在重新分组之后重新计算宽度或类似的东西。我首先对宽度值进行硬编码,然后看看它是否会进行更多的合作。