0

我有一些列的网格...我想在该网格中隐藏一列...怎么做...

这是我的网格....在这个我需要从网格中隐藏 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>
4

1 回答 1

-1

你有没有想过给一个列一个 ID 并使用 dojo.style 方法或 CSS 来设置它的可见性?

于 2013-01-17T10:55:10.613 回答