EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: ftmh on March 04, 2014, 01:08:21 AM



Title: how can have more than one feild
Post by: ftmh 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


Title: Re: how can have more than one feild
Post by: Andy1980 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>


Title: Re: how can have more than one feild
Post by: ftmh on March 04, 2014, 04:41:43 AM
tnx,but i have more than one feild in <th>,some more feild in some <th>



 ;)