Closed moritzmair92 closed 9 years ago
Hi @moritzmair92 I'd like see some code of your issue or the thing that you want to do. But it is working with server side pagination..
My html:
<table data-toggle="table" data-url="times/table" data-cache="false" data-flat="true" data-side-pagination="server" data-pagination="true" class="table-hover table-striped">
<thead>
<tr>
<th data-field="user.first_name" data-sortable="true">User</th>
<th data-field="project.name" data-sortable="true">Project</th>
<th data-field="device.serial" data-sortable="true">Device</th>
<th data-field="formatted_day" data-sortable="true">Tag</th>
<th data-field="start" data-sortable="true">Start</th>
<th data-field="end" data-sortable="true">Ende</th>
</tr>
</thead>
</table>
The json what i get from server:
{
"rows": [
{
"id": "13",
"start": "15:15:00",
"end": "16:15:00",
"formatted_day": "14/01/2015",
"device": {
"id": "6",
"serial": "asdfas"
},
"company": {
"id": "1",
"name": "Test GmbH"
},
"user": {
"id": "1",
"username": "test@test.com",
"first_name": "Test",
"last_name": "Test",
},
"project": {
"id": "1",
"name": "Project eins",
}
}
],
"total": 1
}
project.name and user.first_name dont work. start, end and formatted_day are working!
@moritzmair92 Hi! I was checking your problem and I think that it's a bug of BT... Here is the issue and pull request
Hi! Now its working.. Thanks
@moritzmair92 Sounds great!! Here is the pull request merged https://github.com/wenzhixin/bootstrap-table/commit/b05562b4dde96705c7705762c0507ae720b6a3b6
It's possible that this is not working with server side pagination?