如何隐藏dojox.grid.DataGrid中的特定列

时间:2013-01-17 09:41:05

标签: html dojo

我有一些列的网格...我想在该网格中隐藏一列...如何做到这一点......

这是我的网格....在这里我需要隐藏网格中的CWDocId标题...

<div class="claro" id="CWPWORKLIST__2" name="dataGrid" onclick="setWidgetproperty(this.id,'xy','inner__CWPWORKLIST__2')" ondblclick="editDataGridResponseMapping(this.id)" onmouseup="setDocStyle(this.id)" style="height:250px; left:auto; position:absolute; top:333px; width:920px;">
     <table class="claro" dojotype="dojox.grid.DataGrid" id="inner__CWPWORKLIST__2" rowselector="10px">
          <thead>
               <tr>
                    <th field="CWDocId" width="100px" style="display:none;">
                         CWDocId
                    </th>
                    <th field="Due" width="100px">
                         Due
                    </th>
                    <th field="Participant" width="100px">
                         Participant
                    </th>
                    <th field="User" width="100px">
                         User
                    </th>
                    <th field="Task" width="100px">
                         Task
                    </th>
                    <th field="Details" width="100px">
                         Details
                    </th>
                    <th field="Created" width="100px">
                         Created
                    </th>
                    <th field="Assigned" width="100px">
                         Assigned
                    </th>
                    <th field="Started" width="100px">
                         Started
                    </th>
               </tr>
          </thead>
     </table>
     <input id="hidden__CWPWORKLIST__2" name="orcl1.cw" style="display:none;" type="hidden" value="CWDocId##CWDOCID,Due##DUE_DATE,Participant##PARTICIPANT_TYPE,User##USER_ID,Task##OPERATION,Details##ORDER_VK,Created##CREATION_DATE,Assigned##ASSIGN_TO_USER_DATE,Started##START_WORK_DATE">
</div>

1 个答案:

答案 0 :(得分:-1)

您是否考虑过为列提供ID并使用dojo.style方法或CSS来设置其可见性?