2014-10-17 5 views
1

각도가있는 trnggrid를 사용하여 데이터를 표 형식으로 표시합니다. 다음은이 링크에서 스크린 샷을 넣어 내가 이것을 실행할 때, 세 가지 여분의 열이 잘못 header.Have에 추가지고 내 코드각도 TrngGrid 추가 열 추가

<div class="row-fluid"> 
    <table tr-ng-grid="" items="products" page-items="5" class="table table-condensed table-hover"> 
     <thead> 
      <tr> 
       <th field-name="Id" display-name="Id" enable-filtering="true" enable-sorting="true" cell-width="10em" display-align="right"> 
       </th> 
       <th field-name="Name" display-name="Name" enable-filtering="true" enable-sorting="true" cell-width="10em" display-align="right"> 
       </th> 
       <th field-name="Unit" display-name="Unit" enable-filtering="true" enable-sorting="true" cell-width="10em" display-align="right"> 
       </th> 
      </tr> 
     </thead> 
     <tbody> 
      <tr ng-repeat="product in products"> 

       <td>{{product.Id}}</td> 
       <td>{{product.Name}}</td> 
       <td>{{product.Unit}}</td> 
       <td> 
        <a ng-click="viewProduct(gridDisplayItem.Id)">View |</a>&nbsp; 
        <a ng-click="editProduct(gridDisplayItem.Id)"> Edit |</a>&nbsp; 
        <a ng-click="deleteProduct(gridDisplayItem.Id)">Delete</a> 
       </td> 

      </tr> 
     </tbody> 
    </table> 
</div> 

입니다. http://i.imgur.com/ZHoLTwW.png

누군가가이 문제에 대한 해결책을 제안 할 수 있습니까? 미리 감사드립니다 !!

답변

1

TBODY에 NG 반복 지시를 제거하고 처음 3 그들이 테이블 지시어 때문에 필요하지 않은를 제거 이미 처리 한 당신을 위해 ....

보기 |   편집 |   는
+0

감사 @ 폴 삭제! 정말 도움이! – Philomath