EasyUI Forum
May 21, 2024, 12:25:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how can have more than one feild  (Read 5369 times)
ftmh
Newbie
*
Posts: 19


View Profile
« on: March 04, 2014, 01:08:21 AM »

hi
i want to have more than one field in data grid:
<th data-options="field:'isEnabled'" sortable="true">
            <spring:message code="UI.General.Active" />
</th>
in this example  have one field"isEnabled"

thnks
Logged
Andy1980
Newbie
*
Posts: 14


View Profile Email
« Reply #1 on: March 04, 2014, 04:10:38 AM »

you can find your answer right in the docu:
Code:
<table class="easyui-datagrid" style="width:400px;height:250px"
        data-options="url:'datagrid_data.json',fitColumns:true,singleSelect:true">
    <thead>
        <tr>
            <th data-options="field:'code',width:100">Code</th>
            <th data-options="field:'name',width:100">Name</th>
            <th data-options="field:'price',width:100,align:'right'">Price</th>
        </tr>
    </thead>
</table>
Logged
ftmh
Newbie
*
Posts: 19


View Profile
« Reply #2 on: March 04, 2014, 04:41:43 AM »

tnx,but i have more than one feild in <th>,some more feild in some <th>



 Wink
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!