2016-09-08 1 views
2

ShieldUI Grid의 열에 대한 최소 너비를 지정하는 속성이나 방법이 있습니까?ShieldUI 모눈 열 최소 너비

$("#grid1").shieldGrid({ 
       dataSource: { 
        data: products, 
        sort: [ { path: "['Category']['CategoryName']", desc: true } ], 
        filter: { field: "ProductID", value: "1" } 
       }, 
       rowHover: false, 
       columns: [ 
       "ProductName", 
       { field: "['Category']['CategoryName']", title: "CategoryName", format: "{0:c}", width: "330px" }, 
       { field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: "130px" }, 
       { field: "UnitsInStock", title: "Units In Stock", width: "130px" }, 
       { field: "Discontinued", width: "130px" }, 
       { 
        buttons: [ 
          { 
           cls: "mybuttonCssClass", 
           caption: "<span class='glyphicon glyphicon-remove'></span> Delete", 
           commandName: "details", // build in - edit, delete 
           click: function (rowIndex) { 
            var grid = this; 
            // custom actions ... 
            console.log(grid.options); 
            alert(rowIndex); 
           } 
          }, 
         { commandName: "delete" } // delete, edit, expand 
        ] 
       } 
       ] 
      }); 

답변

2

예 이와 같이 기재된 minWidth property,있다 : 사용자는 크기를 조정할 때 열이 걸릴 수

최소 폭. 에서이 속성을 사용하려면 그리드 크기를 으로 설정해야합니다.